public function GroupRoleFeaturesController::export_options in Group 7
Generates the result for hook_features_export_options().
Overrides EntityDefaultFeaturesController::export_options
File
- classes/
group_role.features_controller.inc, line 25 - Defines the Features integration class for group roles.
Class
- GroupRoleFeaturesController
- Main class for group role Features integration.
Code
public function export_options() {
$options = array();
foreach (entity_load_multiple_by_name('group_role', FALSE) as $name => $group_role) {
if ($group_role->global) {
$options[$name] = $group_role
->label();
}
}
return $options;
}