You are here

function field_placeholder_get_widgets in Field placeholder 7

Same name and namespace in other branches
  1. 7.2 field_placeholder.module \field_placeholder_get_widgets()

Returns information about field widgets from hook_field_placeholder_info().

Return value

array An array containing all the Field placeholder available widgets information.

1 call to field_placeholder_get_widgets()
field_placeholder_get_widget_types in ./field_placeholder.module
Returns an array with names of all the placeholder available widgets.

File

./field_placeholder.module, line 51
Field placeholder module hooks and main functionality.

Code

function field_placeholder_get_widgets() {
  $widgets =& drupal_static(__FUNCTION__);
  if (!$widgets) {
    $widgets = module_invoke_all('field_placeholder_info');
    $widgets = is_array($widgets) ? $widgets : array();
  }
  return $widgets;
}