function imagefield_focus_get_widgets in ImageField Focus 6
Get widgets that may be supported by ImageField Focus.
Return value
An array of hook_imagefield_focus_widgets() results, keyed by widget_type.
2 calls to imagefield_focus_get_widgets()
- imagefield_focus_elements in ./
imagefield_focus.module - Implementation of hook_elements().
- imagefield_focus_widget_support in ./
imagefield_focus.module - Return whether ImageField Focus has support for the given widget.
File
- ./
imagefield_focus.module, line 350 - Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
Code
function imagefield_focus_get_widgets() {
static $widgets;
if (!isset($widgets)) {
$widgets = array();
$results = module_invoke_all('imagefield_focus_widgets');
foreach ($results as $key => $value) {
if (is_numeric($key)) {
$widgets[$value] = TRUE;
}
else {
$widgets[$key] = $value;
}
}
}
return $widgets;
}