form_helper_menu

custom/form_helper/form_helper.module, line 31

Versions
6
form_helper_menu()

Implementation of hook_menu().

Creates the main 'Administer › Site configuration > Form helper' administration page.

Code

<?php
function form_helper_menu() {

  $items['admin/settings/form_helper'] = array(
    'title' => 'Form helper',
    'description' => 'A collection of modules that assists with form management, validation, and alteration.',
    'access arguments' => array('administer site configuration'),
    'page callback' => 'module_helper_admin',
    'page arguments' => array('Form helper', 'admin/settings/form_helper'),
    'file' => 'module_helper.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );

  $items['admin/settings/form_helper/index'] = array(
    'title' => 'Main',
    'access arguments' => array('administer site configuration'),
    'page callback' => 'module_helper_admin',
    'page arguments' => array('Form helper', 'admin/settings/form_helper'),
    'file' => 'module_helper.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -50,
  );

  return $items;
}
?>