You are here

function module_builder_update_button in Module Builder 5

Form after_build handler. If update button was clicked, update hooks documentation. Rest of form is not submitted. Cribbed from node_form_add_preview()

1 string reference to 'module_builder_update_button'
module_builder_admin_settings in ./module_builder.module
Implementation of hook_settings().

File

./module_builder.module, line 210
Builds scaffolding for custom modules.

Code

function module_builder_update_button($form) {
  global $form_values;
  $op = isset($form_values['op']) ? $form_values['op'] : '';
  if ($op == t('Update')) {
    module_builder_update_documentation();
  }
  return $form;
}