function user_relationship_defaults_menu in User Relationships 6
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()
- 7 user_relationship_defaults/user_relationship_defaults.module \user_relationship_defaults_menu()
File
- user_relationship_defaults/
user_relationship_defaults.module, line 90 - Drupal Module: User Relationship Defaults
Code
function user_relationship_defaults_menu() {
$items = array();
$items['admin/user/relationships/defaults/add'] = array(
'title' => 'Add default',
'access arguments' => array(
'administer user relationships',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_relationship_defaults_add_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/user/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',
4,
),
'type' => MENU_CALLBACK,
);
return $items;
}