You are here

function defaultconfig_get_components in Default config 7

Get all defaultconfig components.

Return value

array an array of components with the following keys:

  • weight: the weight of the components
  • rebuild callback: a string representing a callback to that rebuilds the

default configuration.

  • group (optional) the hook group the hook resides in.
11 calls to defaultconfig_get_components()
defaultconfig_admin in ./defaultconfig.admin.inc
Main administration page callback.
defaultconfig_component_rebuild_form in ./defaultconfig.admin.inc
Rebuild confirmation form.
defaultconfig_features_export_alter in ./defaultconfig.module
Implements hook_features_export_alter().
defaultconfig_features_export_options in ./defaultconfig.features.inc
Implements hook_features_export_options().
defaultconfig_features_export_render in ./defaultconfig.features.inc
Implements hook_features_export_render().

... See full list

File

./defaultconfig.module, line 395
main module file.

Code

function defaultconfig_get_components($reset = FALSE) {
  $components =& drupal_static(__FUNCTION__);
  if (!isset($components) || $reset) {
    $components = module_invoke_all('defaultconfig_components');
    foreach ($components as $name => &$component) {
      $component['name'] = $name;
      $component['hook'] = 'defaultconfig_' . $component['name'];
    }
    uasort($components, 'defaultconfig_components_sort');
  }
  return $components;
}