| Versionen | |
|---|---|
| drupal7 | field_behaviors_widget($op, $instance) |
Helper function for determining the behavior of a widget with respect to a given operation.
$op The name of the operation. Currently supported: 'default value', 'multiple values'. @param $instance The field instance array. @return FIELD_BEHAVIOR_NONE - do nothing for this operation. FIELD_BEHAVIOR_CUSTOM - use the widget's callback function. FIELD_BEHAVIOR_DEFAULT - use field.module default behavior.
This function is an autoloader for _field_behaviors_widget() in modules/field/field.info.inc.
modules/
<?php
function field_behaviors_widget($op, $instance) {
require_once DRUPAL_ROOT . '/modules/field/field.info.inc';
return _field_behaviors_widget($op, $instance);
}
?>
Kommentare
Kommentar hinzufügen