You are here

function mb_content_changed_validate in More Buttons 7

Implements hook_form_validate().

Skip the function node_last_changed().

1 string reference to 'mb_content_changed_validate'
mb_content_form_alter in mb_content/mb_content.module
Implements hook_form_alter().

File

mb_content/mb_content.module, line 378
Provides additional buttons for nodes.

Code

function mb_content_changed_validate($form, &$form_state) {

  // Only operate if the Submit, Preview, Delete, or Save and Continue button
  // was pressed.
  if ($form_state['clicked_button']['#id'] == 'edit-submit' || $form_state['clicked_button']['#id'] == 'edit-preview' || $form_state['clicked_button']['#id'] == 'edit-delete' || $form_state['clicked_button']['#id'] == 'edit-sac') {
    $form['changed']['#default_value'] = 0;
  }
}