function nodehierarchy_permission in Node Hierarchy 7.4
Same name and namespace in other branches
- 7.2 nodehierarchy.module \nodehierarchy_permission()
Implements hook_permission().
1 call to nodehierarchy_permission()
- nodehierarchy_alter_node_form in ./
nodehierarchy.admin.inc - Add Node Hierarchy settings to the node form.
File
- ./
nodehierarchy.module, line 48
Code
function nodehierarchy_permission() {
return array(
'create child nodes' => array(
'title' => t('create child nodes'),
'description' => t('Add a node as a child of another node'),
),
'edit all node parents' => array(
'title' => t('edit all node parents'),
'description' => t('Edit the parent of any node'),
),
'edit own node parents' => array(
'title' => t('edit own node parents'),
'description' => t('Edit the parent of own nodes'),
),
'administer hierarchy' => array(
'title' => t('administer hierarchy'),
'description' => t('Change the site wide settings for Node Hierarchy'),
),
'customize nodehierarchy menus' => array(
'title' => t('customize nodehierarchy menus'),
'description' => t('Change the menu settings for nodes'),
),
'create child of any parent' => array(
'title' => t('create child of any parent'),
'description' => t('Add a child to any other node'),
),
);
}