| Versionen | |
|---|---|
| drupal7 | field_behaviors_field($op, $field) |
Helper function for determining the behavior of a field with respect to a given operation.
$op The name of the operation. Currently supported : none // TODO D7: no use cases (yet ?) - do we want to keep that function ?. @param $field The field array. @return FIELD_BEHAVIOR_NONE - do nothing for this operation. FIELD_BEHAVIOR_CUSTOM - use the field's callback function. FIELD_BEHAVIOR_DEFAULT - use field.module default behavior.
This function is an autoloader for _field_behaviors_field() in modules/field/field.info.inc.
modules/
<?php
function field_behaviors_field($op, $field) {
require_once DRUPAL_ROOT . '/modules/field/field.info.inc';
return _field_behaviors_field($op, $field);
}
?>
Kommentare
Kommentar hinzufügen