You are here

function views_deploy_form_alter in Deploy - Content Staging 6

Implementation of hook_form_alter().

File

modules/views_deploy/views_deploy.module, line 55
Deployment API which enables modules to deploy items between servers.

Code

function views_deploy_form_alter(&$form, &$form_state, $form_id) {

  // Add our own submit callback that will remove the deleted view from all
  // plans.
  if ($form_id == 'views_ui_delete_confirm') {
    $form['#submit'][] = 'views_deploy_delete_form_submit';
  }
}