You are here

function _hierarchical_select_create_export_code in Hierarchical Select 7.3

Same name and namespace in other branches
  1. 5.3 hierarchical_select.admin.inc \_hierarchical_select_create_export_code()
  2. 6.3 hierarchical_select.admin.inc \_hierarchical_select_create_export_code()

Given a config array, create the export code for it.

Parameters

array $config: A Hierarchical Select config array, as described in API.txt

Return value

string The code as it would appear in an editor.

2 calls to _hierarchical_select_create_export_code()
hierarchical_select_admin_export in ./hierarchical_select.admin.inc
Form definition; config export form.
hierarchical_select_features_export_render in ./hierarchical_select.features.inc
Implements hook_features_export_render().

File

./hierarchical_select.admin.inc, line 257
Module settings and configuration administration UI.

Code

function _hierarchical_select_create_export_code($config) {
  $output = _hierarchical_select_create_code_from_array($config);
  $output = '$config = ' . $output . ";\n";
  return $output;
}