function devel_generate_menu
Same name in other branches
- 6.x-1.x devel_generate.module \devel_generate_menu()
Implements hook_menu().
File
-
devel_generate/
devel_generate.module, line 6
Code
function devel_generate_menu() {
$items = array();
$items['admin/config/development/generate/user'] = array(
'title' => 'Generate users',
'description' => 'Generate a given number of users. Optionally delete current users.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_generate_users_form',
),
'access arguments' => array(
'administer users',
),
);
$items['admin/config/development/generate/content'] = array(
'title' => 'Generate content',
'description' => 'Generate a given number of nodes and comments. Optionally delete current items.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_generate_content_form',
),
'access arguments' => array(
'administer nodes',
),
);
if (module_exists('taxonomy')) {
$items['admin/config/development/generate/taxonomy'] = array(
'title' => 'Generate terms',
'description' => 'Generate a given number of terms. Optionally delete current terms.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_generate_term_form',
),
'access arguments' => array(
'administer taxonomy',
),
);
$items['admin/config/development/generate/vocabs'] = array(
'title' => 'Generate vocabularies',
'description' => 'Generate a given number of vocabularies. Optionally delete current vocabularies.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_generate_vocab_form',
),
'access arguments' => array(
'administer taxonomy',
),
);
}
$items['admin/config/development/generate/menu'] = array(
'title' => 'Generate menus',
'description' => 'Generate a given number of menus and menu links. Optionally delete current menus.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'devel_generate_menu_form',
),
'access arguments' => array(
'administer menu',
),
);
return $items;
}