You are here

function field_hidden_menu in Field Hidden 7

Declares configuration page.

Implements hook_menu().

Return value

array

File

./field_hidden.module, line 28
Drupal Field Hidden module

Code

function field_hidden_menu() {
  return array(
    'admin/config/fields' => array(
      'title' => 'Fields',
      'description' => 'Field type settings and utilities',
      'weight' => -15,
      // want to see it close to Content Authoring
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/config/fields/field_hidden' => array(
      'title' => 'Hidden Fields',
      'description' => 'Configure Fields Hidden',
      'page callback' => 'drupal_get_form',
      // hook to implement
      'page arguments' => array(
        '_field_hidden_admin_form',
      ),
      // Name of implementing function.
      'access arguments' => array(
        'field hidden administer',
      ),
      // Permission required.
      'file' => 'field_hidden.admin.inc',
      'type' => MENU_NORMAL_ITEM,
    ),
  );
}