function dialog_comment_menu in Dialog 6
Same name and namespace in other branches
- 7 modules/dialog_comment/dialog_comment.module \dialog_comment_menu()
Implementation of hook_menu().
File
- modules/
dialog_comment/ dialog_comment.module, line 14 - Provides Dialog integration for the core comment module. NOTE: In order for the edit, delete and reply links on comments to work, you must patch the Drupal 6 comment module with the patch from http://drupal.org/node/374463#comment-2393592.
Code
function dialog_comment_menu() {
$items['comment/%ctools_js/delete/%'] = array(
'title' => 'Delete comment',
'page callback' => 'dialog_comment_delete',
'page arguments' => array(
3,
1,
),
'access arguments' => array(
'administer comments',
),
'type' => MENU_CALLBACK,
);
$items['comment/%ctools_js/edit/%'] = array(
'title' => 'Edit comment',
'page callback' => 'dialog_comment_edit',
'page arguments' => array(
3,
1,
),
'access arguments' => array(
'post comments',
),
'type' => MENU_CALLBACK,
);
$items['comment/%ctools_js/reply/%node'] = array(
'title' => 'Reply to comment',
'page callback' => 'dialog_comment_reply',
'page arguments' => array(
3,
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'view',
3,
),
'type' => MENU_CALLBACK,
);
return $items;
}