function bad_menu in Coder 8.3.x
Same name and namespace in other branches
- 8.3 tests/Drupal/bad/bad.module \bad_menu()
- 8.2 coder_sniffer/Drupal/Test/bad/bad.module \bad_menu()
- 7.2 coder_sniffer/Test/bad/bad.module \bad_menu()
Implements hook_menu().
Menu title and description should be untranslated.
File
- tests/
Drupal/ 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;
}