You are here

function configuration_export_render_defaults in Configuration Management 7

Return a code string representing an implementation of a defaults module hook.

1 call to configuration_export_render_defaults()
configuration_export_render in ./configuration.export.inc
Render feature export into an array representing its files.

File

./configuration.export.inc, line 257

Code

function configuration_export_render_defaults($module, $hook, $code) {
  $output = array();
  $output[] = "/**";
  $output[] = " * Implements hook_{$hook}().";
  $output[] = " */";
  $output[] = "function {$module}_{$hook}() {";
  $output[] = $code;
  $output[] = "}";
  return implode("\n", $output);
}