Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
27db2cb8
Commit
27db2cb8
authored
Dec 12, 2006
by
Steven Wittens
Browse files
#102606
: More documentation for constants (webchick)
parent
e5027541
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
27db2cb8
...
...
@@ -10,58 +10,114 @@
* a forum topic, weblog post, story, collaborative book page, etc.
*/
/*
* Co
nstants to define a co
mment
'
s published
state
/*
*
* Comment
i
s published
.
*/
define
(
'COMMENT_PUBLISHED'
,
0
);
/**
* Comment is awaiting approval.
*/
define
(
'COMMENT_NOT_PUBLISHED'
,
1
);
/**
* Co
nstants to define the viewing modes for comment listings
* Co
mments are displayed in a flat list - collapsed.
*/
define
(
'COMMENT_MODE_FLAT_COLLAPSED'
,
1
);
/**
* Comments are displayed in a flat list - expanded.
*/
define
(
'COMMENT_MODE_FLAT_EXPANDED'
,
2
);
/**
* Comments are displayed as a threaded list - collapsed.
*/
define
(
'COMMENT_MODE_THREADED_COLLAPSED'
,
3
);
/**
* Comments are displayed as a threaded list - expanded.
*/
define
(
'COMMENT_MODE_THREADED_EXPANDED'
,
4
);
/**
* Co
nstants to define the viewing orders for comment listings
* Co
mments are ordered by date - newest first.
*/
define
(
'COMMENT_ORDER_NEWEST_FIRST'
,
1
);
/**
* Comments are ordered by date - oldest first.
*/
define
(
'COMMENT_ORDER_OLDEST_FIRST'
,
2
);
/**
* Co
nstants to define the position of
the comment
controls
* Co
mment controls should be shown above
the comment
list.
*/
define
(
'COMMENT_CONTROLS_ABOVE'
,
0
);
/**
* Comment controls should be shown below the comment list.
*/
define
(
'COMMENT_CONTROLS_BELOW'
,
1
);
/**
* Comment controls should be shown both above and below the comment list.
*/
define
(
'COMMENT_CONTROLS_ABOVE_BELOW'
,
2
);
/**
* Comment controls are hidden.
*/
define
(
'COMMENT_CONTROLS_HIDDEN'
,
3
);
/**
*
Constants to define the anonymous poster contact handling
*
Anonymous posters may not enter their contact information.
*/
define
(
'COMMENT_ANONYMOUS_MAYNOT_CONTACT'
,
0
);
/**
* Anonymous posters may leave their contact information.
*/
define
(
'COMMENT_ANONYMOUS_MAY_CONTACT'
,
1
);
/**
* Anonymous posters must leave their contact information.
*/
define
(
'COMMENT_ANONYMOUS_MUST_CONTACT'
,
2
);
/**
* Co
nstants to define the comment form location
* Co
mment form should be displayed on a separate page.
*/
define
(
'COMMENT_FORM_SEPARATE_PAGE'
,
0
);
/**
* Comment form should be shown below post or list of comments.
*/
define
(
'COMMENT_FORM_BELOW'
,
1
);
/**
* Co
nstants to define a node's comment state
* Co
mments for this node are disabled.
*/
define
(
'COMMENT_NODE_DISABLED'
,
0
);
/**
* Comments for this node are locked.
*/
define
(
'COMMENT_NODE_READ_ONLY'
,
1
);
/**
* Comments are enabled on this node.
*/
define
(
'COMMENT_NODE_READ_WRITE'
,
2
);
/**
* Co
nstants to define if co
mment preview is optional
or required
* Comment preview is optional
.
*/
define
(
'COMMENT_PREVIEW_OPTIONAL'
,
0
);
/**
* Comment preview is required.
*/
define
(
'COMMENT_PREVIEW_REQUIRED'
,
1
);
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment