function hide_submit_menu in Hide submit button 7.2
Same name and namespace in other branches
- 5 hide_submit.module \hide_submit_menu()
- 6 hide_submit.module \hide_submit_menu()
- 7 hide_submit.module \hide_submit_menu()
Implements hook_menu().
File
- ./
hide_submit.module, line 127 - This module blocks users from accidentally submitting a form twice. The protection only comes from jQuery and is not server side, so this is only effective against accidentally clicking of the button by users with Javascript enabled (which is a very…
Code
function hide_submit_menu() {
$items = array();
$items['admin/config/content/hide-submit'] = array(
'title' => 'Hide submit settings',
'description' => 'Configure the hiding of the form submit button.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hide_submit_settings',
),
'access arguments' => array(
'administer hide submit',
),
'file' => 'hide_submit.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}