function user_relationship_defaults_menu in User Relationships 7
Same name and namespace in other branches
- 5 plugins/user_relationship_defaults/user_relationship_defaults.module \user_relationship_defaults_menu()
- 5.2 plugins/user_relationship_defaults/user_relationship_defaults.module \user_relationship_defaults_menu()
- 6 user_relationship_defaults/user_relationship_defaults.module \user_relationship_defaults_menu()
Implements hook_menu().
File
- user_relationship_defaults/
user_relationship_defaults.module, line 95 - Drupal Module: User Relationship Defaults
Code
function user_relationship_defaults_menu() {
$items = array();
$items['admin/config/people/relationships/defaults/add'] = array(
'title' => 'Add default relationship',
'access arguments' => array(
'administer user relationships',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_relationship_defaults_add_form',
),
'type' => MENU_LOCAL_ACTION,
'weight' => 2,
);
$items['admin/config/people/relationships/defaults/%user_relationship_default/delete'] = array(
'title' => 'Delete default',
'access arguments' => array(
'administer user relationships',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_relationship_defaults_delete_form',
5,
),
'type' => MENU_CALLBACK,
);
return $items;
}