You are here

function jammer_generic_menu in Jammer 6

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

Implementation of hook_menu().

File

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

Code

function jammer_generic_menu() {
  $items['admin/settings/jammer/generic'] = array(
    'title' => 'Generic Jammer',
    'description' => 'Remove any item from any forms.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_jammer_generic_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/settings/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;
}