field_behaviors_widget

  1. drupal
    1. drupal7
Versionen
drupal7 field_behaviors_widget($op, $instance)

Helper function for determining the behavior of a widget with respect to a given operation.

Übergabeparameter

$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.

Verwandte Themen

▾ 3 functions call field_behaviors_widget()

field_default_form in modules/field/field.form.inc
Create a separate form element for each field.
field_default_form_errors in modules/field/field.form.inc
Transfer field-level validation errors to widgets.
field_default_submit in modules/field/field.default.inc

Code

modules/field/field.autoload.inc, line 427

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen