public static function TripalFieldWidget::info
3.x TripalFieldWidget.inc | public static TripalFieldWidget::info() |
Provides information about the widgets provided by this field.
This function corresponds to the hook_field_widget_info() function of the Drupal Field API.
This is a static function as it provides default values for all of the widgets for this field type, and thus we don't need an instantiated object to provide this information.
Return value
An associative array with key/value pairs compatible with those from the hook_field_widget_info() function of the Drupal Field API.
File
- tripal/
includes/ TripalFields/ TripalFieldWidget.inc, line 40
Class
Code
public static function info() {
$class = get_called_class();
return array(
'label' => $class::$default_label,
'field types' => $class::$field_types,
);
}