You are here

function jammer_generic_menu in Jammer 7

Same name and namespace in other branches
  1. 6 jammer_generic.module \jammer_generic_menu()

Implements hook_menu().

File

./jammer_generic.module, line 11
Remove configured form elements from forms.

Code

function jammer_generic_menu() {
  $items['admin/config/user-interface/jammer_generic'] = array(
    'title' => 'Generic Jammer',
    'description' => 'Remove any item from any form.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_jammer_generic_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/config/user-interface/jammer_generic/delete/%jammer_generic'] = array(
    'title' => 'Delete generic jammer element',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'jammer_generic_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}