You are here

function _magic_build_settings_php_export in Magic 7

Same name and namespace in other branches
  1. 7.2 includes/magic.export.inc \_magic_build_settings_php_export()

A helper function to print the theme settings withing settings.php.

Parameters

array $array: An array of the current settings saved.

string $theme: The theme key we are building the export for.

Return value

string

1 call to _magic_build_settings_php_export()
magic_export_settings in ./magic.module
Exports theme settings.

File

./magic.module, line 204
Keep Frontend DRY; sprinkle it with MAGIC!

Code

function _magic_build_settings_php_export($array, $theme) {
  $export = '$conf[\'theme_' . $theme . '_settings\'] = ';
  $export .= var_export($array['settings'], TRUE);
  $export .= ';';
  return $export;
}