function _ds_features_api in Display Suite 7
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.2 includes/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
- ./
ds.registry.inc, line 36 - 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;
}