function vud_widget_get_names in Vote Up/Down 7.2
Same name and namespace in other branches
- 6.3 vud.theme.inc \vud_widget_get_names()
- 6.2 vud.theme.inc \vud_widget_get_names()
- 7 vud.theme.inc \vud_widget_get_names()
Load the names of all widgets for use in a select.
This can be given directly to #options when choosing a widget.
1 call to vud_widget_get_names()
- vud_field_field_instance_settings_form in vud_field/
vud_field.module - Implements hook_field_instance_settings_form().
File
- ./
vud.theme.inc, line 61 - Theme functions
Code
function vud_widget_get_names() {
$names = array();
foreach (vud_widget_get_all() as $name => $plugin) {
$names[$name] = $plugin['title'];
}
asort($names);
return $names;
}