You are here

function popup_onload_form_submit in Popup On Load 7

Submit callback for the popup form.

File

./popup_onload.admin.inc, line 106
Administrative interface callbacks of the Popup On Load module.

Code

function popup_onload_form_submit(&$form, &$form_state) {
  $popup_onload = entity_ui_controller('popup_onload')
    ->entityFormSubmitBuildEntity($form, $form_state);

  // Save and go back.
  $popup_onload
    ->save();
  $form_state['redirect'] = 'admin/content/popup_onload';
}