Determines the behavior of a widget with respect to an operation.
string $op: The name of the operation. Currently supported: 'default_value', 'multiple_values'.
array $instance: The field instance array.
int One of these values:
function field_behaviors_widget($op, $instance) {
$info = array();
if ($component = entity_get_form_display($instance['entity_type'], $instance['bundle'], 'default')
->getComponent($instance['field_name'])) {
$info = field_info_widget_types($component['type']);
}
return isset($info[$op]) ? $info[$op] : FIELD_BEHAVIOR_DEFAULT;
}