public static function TripalField::info
3.x TripalField.inc | public static TripalField::info() |
Provides default information about this field type
This function corresponds to the hook_field_info() function of the Drupal Field API.
Return value
An array whose keys are field type names and whose values are arrays describing the field type. The keys are the same as for the hook_field_info() function.
File
- tripal/
includes/ TripalFields/ TripalField.inc, line 171
Class
Code
public static function info() {
$class = get_called_class();
$info = array(
'label' => $class::$default_label,
'description' => $class::$default_description,
'settings' => $class::$default_settings,
'instance_settings' => $class::$default_instance_settings,
'default_widget' => $class::$default_widget,
'default_formatter' => $class::$default_formatter,
'no_ui' => $class::$no_ui,
);
return $info;
}