Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
306
Merge Requests
306
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
27db2cb8
Commit
27db2cb8
authored
Dec 12, 2006
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#102606
: More documentation for constants (webchick)
parent
e5027541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
9 deletions
+65
-9
modules/comment/comment.module
modules/comment/comment.module
+65
-9
No files found.
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 comment's published state
/*
*
* Co
mment is 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 comment preview is optional or required
* Co
mment 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