function heartbeat_comments_menu in Heartbeat 7
Same name and namespace in other branches
- 6.4 modules/heartbeat_comments/heartbeat_comments.module \heartbeat_comments_menu()
Implements hook_menu().
File
- modules/
heartbeat_comments/ heartbeat_comments.module, line 50 - Heartbeat comments for activity.
Code
function heartbeat_comments_menu() {
$items = array();
$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/%ctools_js/comment/delete/%'] = array(
'title' => t('Delete comment'),
'page callback' => 'heartbeat_comments_modal_delete',
'page arguments' => array(
1,
4,
),
'access callback' => '_heartbeat_comments_delete_access',
'access arguments' => array(
4,
),
'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;
}