You are here

function hook_hide_submit_alter in Hide submit button 7.2

Allows modules to alter the behavior of the hide_submit settings.

This example sets Hide Submit to only be active on the module and module confirmation forms.

1 invocation of hook_hide_submit_alter()
hide_submit_add_settings in ./hide_submit.module
Adds the settings.

File

./hide_submit.api.php, line 9

Code

function hook_hide_submit_alter(&$hide_submit_settings) {
  $current_path = current_path();
  if (!($current_path === 'admin/modules') && !($current_path === 'admin/modules/list/confirm')) {
    $hide_submit_settings['hide_submit']['hide_submit_status'] = FALSE;
  }
}