function user_relationship_migrate_menu in User Relationships 5
Same name and namespace in other branches
- 5.2 plugins/user_relationship_migrate/user_relationship_migrate.module \user_relationship_migrate_menu()
- 6 user_relationship_migrate/user_relationship_migrate.module \user_relationship_migrate_menu()
File
- plugins/
user_relationship_migrate/ user_relationship_migrate.module, line 14 - Drupal Module: User Relationship Migrate
Code
function user_relationship_migrate_menu($may_cache) {
$items = array();
if ($may_cache) {
// configuration form (select relationship type)
$items[] = array(
'path' => 'admin/user/relationships/migrate',
'title' => t('Migrate buddylist'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'user_relationship_migrate_form',
),
'access' => user_access('administer user relationships'),
'type' => MENU_LOCAL_TASK,
'weight' => 4,
);
}
else {
// page to actually do the migration
$items[] = array(
'path' => 'admin/user/relationships/migrate/migrating',
'title' => t('Migrating buddylist'),
'callback' => 'user_relationship_migrate_migrate',
'access' => user_access('administer user relationships'),
'type' => MENU_CALLBACK,
);
}
return $items;
}