function vud_widget_get_names in Vote Up/Down 7
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.2 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.
4 calls to vud_widget_get_names()
- vud_comment_admin_settings in vud_comment/
vud_comment.module - Menu callback for administration settings.
- vud_field_field_instance_settings_form in vud_field/
vud_field.module - Implements hook_field_instance_settings_form().
- vud_node_admin_settings in vud_node/
vud_node.module - Advanced menu settings callback.
- vud_term_admin_settings in vud_term/
vud_term.module - Advanced menu settings callback.
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;
}