function facetapi_export_page in Facet API 6.3
Form constructor for the export form.
Parameters
FacetapiAdapter $adapter: The adapter object the settings apply to.
array $realm: The realm definition.
array $facet: The facet definition.
See also
1 string reference to 'facetapi_export_page'
- facetapi_menu in ./
facetapi.module - Implements hook_menu().
File
- ./
facetapi.admin.inc, line 1204 - Admin page callbacks for the Facet API module.
Code
function facetapi_export_page(FacetapiAdapter $adapter, array $realm, array $facet) {
// Gets export fieldset for a realm display settings.
$title = t('Display settings');
$settings = $adapter
->getFacetSettings($facet, $realm);
$export = ctools_export_crud_export('facetapi', $settings);
$output = drupal_get_form('ctools_export_form', $export, $title);
// Gets export fieldset for global display settings.
$title = t('Global settings');
$settings = $adapter
->getFacetSettingsGlobal($facet);
$export = ctools_export_crud_export('facetapi', $settings);
$output .= drupal_get_form('ctools_export_form', $export, $title);
return $output;
}