You are here

function fusion_apply_get_config_info in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/fusion_apply.module \fusion_apply_get_config_info()

Fetch Fusion Apply configuration data from functionality plugins.

Return value

An array of all configuration data.

7 calls to fusion_apply_get_config_info()
FusionApplyApiTestCase::testFusionApplyConfigInfo in fusion_apply/tests/fusion_apply.test
Tests hook_fusion_apply_config_info().
fusion_apply_preprocess in fusion_apply/fusion_apply.module
Implements hook_preprocess().
fusion_apply_ui_filters in fusion_apply/fusion_apply_ui.admin.inc
List skin administration filters that can be applied.
fusion_apply_ui_form_alter in fusion_apply/fusion_apply_ui.module
Implements hook_form_alter().
fusion_apply_ui_form_submit in fusion_apply/fusion_apply_ui.module
Form submission handler for fusion_apply_ui_form_alter().

... See full list

File

fusion_apply/fusion_apply.module, line 970
Handles core Fusion Apply functionality.

Code

function fusion_apply_get_config_info() {
  $config_info =& drupal_static(__FUNCTION__);
  if (!isset($config_info)) {
    if ($cached = cache_get('fusion_apply_config_info')) {
      $config_info = $cached->data;
      return $config_info;
    }
    $config_info = array();
    foreach (fusion_apply_implements() as $name => $extension) {
      $function = "{$name}_fusion_apply_config_info";
      if (function_exists($function)) {
        $extension_info = $function();
        if (isset($extension_info) && is_array($extension_info)) {
          $config_info = array_merge_recursive($config_info, $extension_info);
        }
      }
    }

    // Allow modules to alter config info via hook_fusion_apply_config_info_alter().
    drupal_alter('fusion_apply_config_info', $config_info);
    cache_set('fusion_apply_config_info', $config_info);
  }
  return $config_info;
}