You are here

function total_control_form_alter in Total Control Admin Dashboard 7.2

Same name and namespace in other branches
  1. 6.2 total_control.module \total_control_form_alter()
  2. 6 total_control.module \total_control_form_alter()

Implements hook_form_alter().

Adds views adjustment handling when content types are added or removed

File

./total_control.module, line 94

Code

function total_control_form_alter(&$form, $form_state, $form_id) {
  if ('node_type_form' == $form_id) {
    $form['#submit'][] = 'total_control_add_type_submit';
  }
  if ('node_type_delete_confirm' == $form_id) {
    $form['#submit'][] = 'total_control_remove_type_submit';
  }
}