function commerce_kickstart_get_fields_default_alters in Commerce Kickstart 7.2
Gets Features Override alters for field from 1.x
2 calls to commerce_kickstart_get_fields_default_alters()
File
- ./
commerce_kickstart.profile, line 265
Code
function commerce_kickstart_get_fields_default_alters() {
$cache = drupal_static(__FUNCTION__, array());
if (empty($cache)) {
module_load_include('inc', 'features', 'features.export');
features_include();
// Features 1.x labeled all field data same as field instance in 2.x
features_include_defaults('field_instance');
$default_hook = features_get_default_hooks('field_instance');
// Invoke each Feature to see if they provide default field instances,
// so that we can have all possible field identifiers.
foreach (array_keys(features_get_features()) as $module) {
if (module_hook($module, $default_hook)) {
$cache = array_merge($cache, call_user_func("{$module}_{$default_hook}"));
}
}
}
return $cache;
}