function skinr_group_features_export_options in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_context/skinr_context.features.inc \skinr_group_features_export_options()
Implements hook_features_export_options().
File
- skinr_context/
skinr_context.features.inc, line 55 - Implements features integration for Skinr Context.
Code
function skinr_group_features_export_options() {
// Some title callbacks require a theme; for lack of better data use the
// default theme.
$theme = skinr_current_theme(TRUE);
$options = array();
foreach (skinr_context_group_load_multiple(FALSE) as $group) {
$title = skinr_invoke_all('skinr_ui_element_title', $group->module, $group->element, $theme);
$title = reset($title);
$options[$group->gid] = t('@type: @element: @group (@gid)', array(
'@type' => $group->module,
'@element' => $title ? strip_tags($title) : $group->element,
'@group' => $group->title,
'@gid' => $group->gid,
));
}
asort($options);
return $options;
}