function heartbeat_comments_menu in Heartbeat 6.4
Same name and namespace in other branches
- 7 modules/heartbeat_comments/heartbeat_comments.module \heartbeat_comments_menu()
Implementation of hook_menu().
File
- modules/
heartbeat_comments/ heartbeat_comments.module, line 46 - heartbeat_comments.module Heartbeat comments can come with two possible
Code
function heartbeat_comments_menu() {
$items['admin/content/heartbeat/comments'] = array(
'title' => 'Published heartbeat comments',
'description' => 'List and edit heartbeat comments.',
'page callback' => 'heartbeat_comments_admin',
'access arguments' => array(
'administer heartbeat comments',
),
'file' => 'heartbeat_comments.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
$items['heartbeat/comment/post'] = array(
'title' => 'heartbeat comment post',
'description' => 'Make a comment on an activity message',
'access arguments' => array(
'add heartbeat comment',
),
'page callback' => 'heartbeat_comments_form_submit',
'type' => MENU_CALLBACK,
);
$items['heartbeat/comment/delete/%'] = array(
'title' => t('Delete comment'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'heartbeat_comments_delete_confirm',
3,
),
'access callback' => '_heartbeat_comments_delete_access',
'access arguments' => array(
3,
),
'type' => MENU_CALLBACK,
);
$items['heartbeat/nodecomment/delete/%'] = array(
'title' => t('Delete comment'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'heartbeat_comments_node_delete_confirm',
3,
),
'access callback' => '_heartbeat_comments_node_delete_access',
'access arguments' => array(
3,
),
'type' => MENU_CALLBACK,
);
$items['heartbeat/comments/load/js'] = array(
'title' => 'heartbeat comments load',
'access arguments' => array(
'add heartbeat comment',
),
'page callback' => 'heartbeat_comments_load_js',
'type' => MENU_CALLBACK,
);
return $items;
}