field_behaviors_formatter

  1. drupal
    1. drupal7
Versionen
drupal7 field_behaviors_formatter($op, $display)

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

Übergabeparameter

$op The name of the operation. Currently supported: 'multiple values' @param $display The $instance['display'][$build_mode] array. @return FIELD_BEHAVIOR_NONE - do nothing for this operation. FIELD_BEHAVIOR_CUSTOM - use the formatter's callback function. FIELD_BEHAVIOR_DEFAULT - use field module default behavior.

This function is an autoloader for _field_behaviors_formatter() in modules/field/field.info.inc.

Verwandte Themen

▾ 2 functions call field_behaviors_formatter()

field_default_view in modules/field/field.default.inc
The 'view' operation constructs the $object in a way that you can use drupal_render() to display the formatted output for an individual field. i.e. print drupal_render($object->content['field_foo']);
field_format in modules/field/field.module
Format a field item for display.

Code

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

<?php
function field_behaviors_formatter($op, $display) {
  require_once DRUPAL_ROOT . '/modules/field/field.info.inc';
  return _field_behaviors_formatter($op, $display);
}
?>

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