You are here

function hansel_export_settings in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 hansel.export.inc \hansel_export_settings()

Export Hansel settings.

Return value

array

1 call to hansel_export_settings()
hansel_features_export_render in ./hansel.features.inc
Implements hook_features_export_render().

File

./hansel.export.inc, line 115

Code

function hansel_export_settings() {
  $settings = array(
    'variables' => array(),
  );
  $variables = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('v.name', 'hansel_%', 'LIKE')
    ->orderBy('v.name', 'ASC')
    ->execute()
    ->fetchCol();
  foreach ($variables as $name) {
    $settings['variables'][$name] = variable_get($name, NULL);
  }
  return $settings;
}