function _ds_features_api in Display Suite 7.2
Same name and namespace in other branches
- 6.3 includes/ds.features.inc \_ds_features_api()
- 6 includes/ds.features.inc \_ds_features_api()
- 6.2 includes/ds.features.inc \_ds_features_api()
- 7 ds.registry.inc \_ds_features_api()
Implements hook_features_api().
1 call to _ds_features_api()
- ds_features_api in ./
ds.module - Implements hook_features_api().
File
- includes/
ds.registry.inc, line 178 - Registry file for Display Suite.
Code
function _ds_features_api() {
static $api = FALSE;
if (!$api) {
module_load_include('inc', 'features', 'includes/features.ctools');
$api = ctools_component_features_api('ds');
foreach ($api as $key => $value) {
switch ($key) {
case 'ds_field_settings':
$api[$key]['name'] = 'Display Suite field settings';
break;
case 'ds_layout_settings':
$api[$key]['name'] = 'Display Suite layout settings';
break;
case 'ds_view_modes':
$api[$key]['name'] = 'Display Suite view modes';
break;
case 'ds_fields':
$api[$key]['name'] = 'Display Suite fields';
break;
}
}
}
return $api;
}