field_attach_view

  1. drupal
    1. drupal7
Versionen
drupal7 field_attach_view($obj_type, &$object, $teaser = FALSE)

Generate and return a structured content array tree suitable for drupal_render() for all of the fields on an object. The format of each field's rendered content depends on the display formatter and its settings.

Übergabeparameter

$obj_type The type of $object; e.g. 'node' or 'user'.

$object The object with fields to render.

$teaser Whether to display the teaser only, as on the main page.

Rückgabewert

A structured content array tree for drupal_render().

This function is an autoloader for _field_attach_view() in modules/field/field.attach.inc.

Verwandte Themen

▾ 5 functions call field_attach_view()

FieldAttachTestCase::testFieldAttachViewAndPreprocess in modules/field/field.test
node_build_content in modules/node/node.module
Builds a structured array representing the node's content.
TextFieldTestCase::_testTextfieldWidgets in modules/field/modules/text/text.test
Helper function for testTextfieldWidgets().
TextFieldTestCase::_testTextfieldWidgetsFormatted in modules/field/modules/text/text.test
Helper function for testTextfieldWidgetsFormatted().
user_build_content in modules/user/user.module
Builds a structured array representing the profile content.

Code

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

<?php
function field_attach_view($obj_type, &$object, $teaser = FALSE) {
  require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
  return _field_attach_view($obj_type, $object, $teaser);
}
?>

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