You are here

function module_builder_menu in Module Builder 7.2

Same name and namespace in other branches
  1. 5 module_builder.module \module_builder_menu()
  2. 6.2 module_builder.module \module_builder_menu()
  3. 6 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 77
Builds scaffolding for custom modules.

Code

function module_builder_menu() {
  $items['admin/modules/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_LOCAL_TASK,
    'weight' => '50',
  );
  $items['admin/config/development/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/config/development/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/config/development/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;
}