You are here

function bad_menu in Coder 7.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/bad/bad.module \bad_menu()
  2. 8.2 coder_sniffer/Drupal/Test/bad/bad.module \bad_menu()
  3. 8.3.x tests/Drupal/bad/bad.module \bad_menu()

Implements hook_menu().

Menu title and description should be untranslated.

File

coder_sniffer/Test/bad/bad.module, line 42
Bad examples of install hooks in a module file.

Code

function bad_menu() {
  $items['example'] = array(
    'title' => t('Example Page'),
    'description' => t('My example module page that does something.'),
    'page callback' => 'example_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  return $items;
}