You are here

function pmpapi_pull_publish_from_preview_form in Public Media Platform API Integration 7

1 string reference to 'pmpapi_pull_publish_from_preview_form'
pmpapi_pull_publish_from_preview in pmpapi_pull/pmpapi_pull.pages.inc

File

pmpapi_pull/pmpapi_pull.pages.inc, line 389

Code

function pmpapi_pull_publish_from_preview_form($form, &$form_state) {

  // don't do this arg() crap; use hidden field form field
  $guid = arg(4);
  pmpapi_pull_pull_doc($guid);
  $form_state['redirect'] = 'admin/content/pmp/search';
  drupal_redirect_form($form_state);
}