You are here

function dfp_tag_ui::edit_execute_form_standard in Doubleclick for Publishers (DFP) 7

Same name and namespace in other branches
  1. 7.2 plugins/export_ui/dfp_tag_ui.class.php \dfp_tag_ui::edit_execute_form_standard()

Make certain that setting form_state['rebuild'] = TRUE in a submit function will correctly rebuild the exportables item edit form for the user. This function is needed until the patch at http://drupal.org/node/1524598 is committed.

Overrides ctools_export_ui::edit_execute_form_standard

File

plugins/export_ui/dfp_tag_ui.class.php, line 91
A custom Ctools Export UI class for DFP Tags.

Class

dfp_tag_ui
Customizations of the DART Tags UI.

Code

function edit_execute_form_standard(&$form_state) {
  $output = drupal_build_form('ctools_export_ui_edit_item_form', $form_state);
  if (!empty($form_state['executed']) && !$form_state['rebuild']) {

    // Interstitial slots are not displayed as a block.
    if (!empty($form_state['values']['settings']['out_of_page'])) {
      $form_state['item']->block = '0';
    }
    $this
      ->edit_save_form($form_state);
  }
  else {
    unset($form_state['executed']);
  }
  return $output;
}