function ctools_component_features_export_render

cis7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)
cle7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)
elmsmedia7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)
icor7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)
meedjum_blog7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)
mooc7 features.ctools.inc ctools_component_features_export_render($component, $module, $data)

Master implementation of hook_features_export_render() for all ctools components.

1 call to ctools_component_features_export_render()
page_manager_pages_features_export_render in sites/all/modules/ulmus/features/includes/features.ctools.inc
Implements hook_features_export_render() for page_manager.

File

sites/all/modules/ulmus/features/includes/features.ctools.inc, line 184

Code

function ctools_component_features_export_render($component, $module, $data) {
  // Reset the export display static to prevent clashes.
  drupal_static_reset('panels_export_display');

  ctools_include('export');
  $schema = ctools_export_get_schema($component);

  if (function_exists($schema['export']['to hook code callback'])) {
    $export = $schema['export']['to hook code callback']($data, $module);
    $code = explode("{\n", $export);
    array_shift($code);
    $code = explode('}', implode($code, "{\n"));
    array_pop($code);
    $code = implode('}', $code);
  }
  else {
    $code = '  $export = array();' . "\n\n";
    foreach ($data as $object_name) {
      if ($object = _ctools_features_export_crud_load($component, $object_name)) {
        $identifier = $schema['export']['identifier'];
        $code .= _ctools_features_export_crud_export($component, $object, '  ');
        $code .= "  \$export[" . ctools_var_export($object_name) . "] = \${$identifier};\n\n";
      }
    }
    $code .= '  return $export;';
  }

  return array($schema['export']['default hook'] => $code);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.