You are here

function module_builder_menu in Module Builder 6.2

Same name and namespace in other branches
  1. 5 module_builder.module \module_builder_menu()
  2. 6 module_builder.module \module_builder_menu()
  3. 7.2 module_builder.module \module_builder_menu()
  4. 7 module_builder.module \module_builder_menu()

Implementation of hook_menu().

Related topics

File

./module_builder.module, line 71
Builds scaffolding for custom modules.

Code

function module_builder_menu() {
  $items['admin/build/module_builder'] = array(
    'title' => 'Module builder',
    'description' => t('Builds scaffolding for custom modules.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'module_builder_page',
    ),
    'file' => 'includes/module_builder.pages.inc',
    'access arguments' => array(
      'access module builder',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/module_builder'] = array(
    'title' => '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.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'module_builder_admin_settings',
    ),
    'file' => 'includes/module_builder.admin.inc',
    'access arguments' => array(
      'access module builder',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/module_builder/settings'] = array(
    'title' => 'Settings',
    'description' => t('Set default header and footer, folder locations, and defaults for detail.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'module_builder_admin_settings',
    ),
    'file' => 'includes/module_builder.admin.inc',
    'access arguments' => array(
      'access module builder',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/module_builder/update'] = array(
    'title' => 'Update hooks',
    'description' => t('Download hook documentation.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'module_builder_admin_update',
    ),
    'file' => 'includes/module_builder.admin.inc',
    'access arguments' => array(
      'access module builder',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}