function module_builder_menu in Module Builder 5
Same name and namespace in other branches
- 6.2 module_builder.module \module_builder_menu()
- 6 module_builder.module \module_builder_menu()
- 7.2 module_builder.module \module_builder_menu()
- 7 module_builder.module \module_builder_menu()
Implementation of hook_menu().
Related topics
File
- ./
module_builder.module, line 103 - Builds scaffolding for custom modules.
Code
function module_builder_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'module_builder',
'title' => t('Module builder'),
'description' => t('Builds scaffolding for custom modules.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'module_builder_page',
),
'access' => user_access('access module builder'),
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/settings/module_builder',
'title' => t('Module builder'),
'description' => t('Set default header and footer, api download location, defaults for detail and download and force the api to be re-downloaded.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'module_builder_admin_settings',
),
'access' => user_access('access module builder'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}