You are here

function hide_submit_permission in Hide submit button 7.2

Implements hook_permission().

File

./hide_submit.module, line 146
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_permission() {
  return array(
    'administer hide submit' => array(
      'title' => t('Administer hide submit module'),
      'description' => t('Perform administration tasks for hide submit module.'),
    ),
    'bypass hide submit' => array(
      'title' => t('Bypass hide submit button'),
      'description' => t('Disables hide_submit functionality for users'),
    ),
  );
}