You are here

function skinr_fetch_data in Skinr 6

Fetch Skinr configuration data from modules.

4 calls to skinr_fetch_data()
skinr_form_alter in ./skinr.module
Implementation of hook_form_alter().
skinr_form_submit in ./skinr.module
Submit handler.
skinr_form_validate in ./skinr.module
Validation handler.
skinr_preprocess in ./skinr.module
Implementation of hook_preprocess().

File

./skinr.module, line 675

Code

function skinr_fetch_data() {
  static $cache = NULL;
  if (is_null($cache)) {
    $cache = module_invoke_all('skinr_data');
    foreach (module_implements('skinr_data_alter') as $module) {
      $function = $module . '_skinr_data_alter';
      $function($cache);
    }
  }
  return $cache;
}