[ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 2019 lignes (75 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
comment_help($section) X-Ref |
Implementation of hook_help(). |
comment_menu($may_cache) X-Ref |
Implementation of hook_menu(). |
comment_perm() X-Ref |
Implementation of hook_perm(). |
comment_block($op = 'list', $delta = 0) X-Ref |
Implementation of hook_block(). Generates a block with the most recent comments. |
comment_get_recent($number = 10) X-Ref |
Find a number of recent comments. This is done in two steps. 1. Find the n (specified by $number) nodes that have the most recent comments. This is done by querying node_comment_statistics which has an index on last_comment_timestamp, and is thus a fast query. 2. Loading the information from the comments table based on the nids found in step 1. param: $number (optional) The maximum number of comments to find. return: $comments An array of comment objects each containing a nid, |
theme_comment_block() X-Ref |
Returns a formatted list of recent comments to be displayed in the comment block. |
comment_link($type, $node = NULL, $teaser = FALSE) X-Ref |
Implementation of hook_link(). |
comment_form_alter($form_id, &$form) X-Ref |
Pas de description |
comment_nodeapi(&$node, $op, $arg = 0) X-Ref |
Implementation of hook_nodeapi(). |
comment_user($type, $edit, &$user, $category = NULL) X-Ref |
Implementation of hook_user(). Provides signature customization for the user's comments. |
comment_admin_settings() X-Ref |
Menu callback; presents the comment settings page. |
comment_access($op, $comment) X-Ref |
This is *not* a hook_access() implementation. This function is called to determine whether the current user has access to a particular comment. Authenticated users can edit their comments as long they have not been replied to. This prevents people from changing or revising their statements based on the replies to their posts. |
comment_node_url() X-Ref |
Pas de description |
comment_edit($cid) X-Ref |
Pas de description |
comment_reply($nid, $pid = NULL) X-Ref |
This function is responsible for generating a comment reply form. There are several cases that have to be handled, including: - replies to comments - replies to nodes - attempts to reply to nodes that can no longer accept comments - respecting access permissions ('access comments', 'post comments', etc.) The node or comment that is being replied to must appear above the comment form to provide the user context while authoring the comment. param: $nid param: $pid return: $output |
comment_save($edit) X-Ref |
Accepts a submission of new or changed comment content. param: $edit return: |
comment_links($comment, $return = 1) X-Ref |
Pas de description |
comment_render($node, $cid = 0) X-Ref |
Renders comment(s). param: $node param: $cid |
comment_delete($cid = NULL) X-Ref |
Menu callback; delete a comment. |
comment_confirm_delete($comment) X-Ref |
Pas de description |
comment_confirm_delete_submit($form_id, $form_values) X-Ref |
Pas de description |
comment_operations($action = NULL) X-Ref |
Comment operations. We offer different update operations depending on which comment administration page we're on. |
comment_admin($type = 'new') X-Ref |
Menu callback; present an administrative comment listing. |
comment_admin_overview($type = 'new', $arg) X-Ref |
Pas de description |
comment_admin_overview_validate($form_id, $form_values) X-Ref |
We can't execute any 'Update options' if no comments were selected. |
comment_admin_overview_submit($form_id, $form_values) X-Ref |
Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting. |
theme_comment_admin_overview($form) X-Ref |
Pas de description |
comment_multiple_delete_confirm() X-Ref |
List the selected comments and verify that the admin really wants to delete them. |
comment_multiple_delete_confirm_submit($form_id, $form_values) X-Ref |
Perform the actual comment deletion. |
_comment_load($cid) X-Ref |
Load the entire comment by cid. |
comment_num_all($nid) X-Ref |
Pas de description |
comment_num_replies($pid) X-Ref |
Pas de description |
comment_num_new($nid, $timestamp = 0) X-Ref |
get number of new comments for current user and specified node param: $nid node-id to count comments for param: $timestamp time to count from (defaults to time of last user access |
comment_validate($edit) X-Ref |
Pas de description |
comment_form($edit, $title = NULL) X-Ref |
Pas de description |
comment_form_box($edit, $title = NULL) X-Ref |
Pas de description |
comment_form_add_preview($form, $edit) X-Ref |
Pas de description |
comment_form_validate($form_id, $form_values) X-Ref |
Pas de description |
_comment_form_submit($form_values) X-Ref |
Pas de description |
comment_form_submit($form_id, $form_values) X-Ref |
Pas de description |
theme_comment_preview($comment, $links = array() X-Ref |
Pas de description |
theme_comment_view($comment, $links = array() X-Ref |
Pas de description |
comment_controls($mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMMENT_ORDER_NEWEST_FIRST, $comments_per_page = 50) X-Ref |
Pas de description |
theme_comment_controls($form) X-Ref |
Pas de description |
comment_controls_submit($form_id, $form_values) X-Ref |
Pas de description |
theme_comment($comment, $links = array() X-Ref |
Pas de description |
theme_comment_folded($comment) X-Ref |
Pas de description |
theme_comment_flat_collapsed($comment) X-Ref |
Pas de description |
theme_comment_flat_expanded($comment) X-Ref |
Pas de description |
theme_comment_thread_collapsed($comment) X-Ref |
Pas de description |
theme_comment_thread_expanded($comment) X-Ref |
Pas de description |
theme_comment_post_forbidden($nid) X-Ref |
Pas de description |
theme_comment_wrapper($content) X-Ref |
Allow themable wrapping of all comments. |
_comment_delete_thread($comment) X-Ref |
Pas de description |
_comment_get_modes() X-Ref |
Return an array of viewing modes for comment listings. We can't use a global variable array because the locale system is not initialized yet when the comment module is loaded. |
_comment_get_orders() X-Ref |
Return an array of viewing orders for comment listings. We can't use a global variable array because the locale system is not initialized yet when the comment module is loaded. |
_comment_per_page() X-Ref |
Return an array of "comments per page" settings from which the user can choose. |
_comment_get_display_setting($setting) X-Ref |
Return a current comment display setting $setting can be one of these: 'mode', 'sort', 'comments_per_page' |
_comment_update_node_statistics($nid) X-Ref |
Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated. The following fields are contained in the node_comment_statistics table. - last_comment_timestamp: the timestamp of the last comment for this node or the node create stamp if no comments exist for the node. - last_comment_name: the name of the anonymous poster for the last comment - last_comment_uid: the uid of the poster for the last comment for this node or the node authors uid if no comments exists for the node. - comment_count: the total number of approved/published comments on this node. |
comment_invoke_comment(&$comment, $op) X-Ref |
Invoke a hook_comment() operation in all modules. param: &$comment param: $op return: |
int2vancode($i = 0) X-Ref |
Generate vancode. Consists of a leading character indicating length, followed by N digits with a numerical value in base 36. Vancodes can be sorted as strings without messing up numerical order. It goes: 00, 01, 02, ..., 0y, 0z, 110, 111, ... , 1zy, 1zz, 2100, 2101, ..., 2zzy, 2zzz, 31000, 31001, ... |
vancode2int($c = '00') X-Ref |
Decode vancode back to an integer. |
Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |