You are here

function panels_export_export in Panels 5.2

Same name and namespace in other branches
  1. 6.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 47
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_id = 'panels_export_export_form';
    $form = drupal_retrieve_form($form_id, $exportables);
    $output = drupal_process_form($form_id, $form);
    if (!$output) {
      $output = drupal_render_form($form_id, $form);
    }
    return $output;
  }
  else {
    return t('There are no panels to be exported at this time.');
  }
}