You are here

function panels_export_export in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_export/panels_export.module \panels_export_export()

Page callback to export panels in bulk.

1 string reference to 'panels_export_export'
panels_export_menu in panels_export/panels_export.module
Implementation of hook_menu().

File

panels_export/panels_export.module, line 49
panels_export.module

Code

function panels_export_export() {
  $exportables = array();
  foreach (module_implements('panels_exportables') as $module) {
    $function = $module . '_panels_exportables';
    $exportables[$module] = $function('list');
  }
  if ($exportables) {
    $form_state = array(
      're_render' => FALSE,
      'no_redirect' => TRUE,
      'exportables' => $exportables,
    );
    $output = drupal_build_form('panels_export_export_form', $form_state);
    if (!$output) {
      $output = $form_state['output'];
    }
    return $output;
  }
  else {
    return t('There are no panels to be exported at this time.');
  }
}