field_attach_extract_ids

  1. drupal
    1. drupal7
Versionen
drupal7 field_attach_extract_ids($object_type, $object)

Helper function to extract id, vid, and bundle name from an object.

Übergabeparameter

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

$object The object from which to extract values.

Rückgabewert

A numerically indexed array (not a hash table) containing these elements:

0: primary id of the object 1: revision id of the object, or NULL if $obj_type is not versioned 2: bundle name of the object 3: whether $obj_type's fields should be cached (TRUE/FALSE)

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

Verwandte Themen

▾ 14 functions call field_attach_extract_ids()

field_default_form in modules/field/field.form.inc
Create a separate form element for each field.
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.
field_sql_storage_field_storage_delete in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete().
field_sql_storage_field_storage_delete_revision in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete_revision().
field_sql_storage_field_storage_load in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_load().
field_sql_storage_field_storage_write in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_write().
template_preprocess_field in modules/field/field.module
Theme preprocess function for field.tpl.php.
_field_attach_delete in modules/field/field.attach.inc
Delete field data for an existing object. This deletes all revisions of field data for the object.
_field_attach_insert in modules/field/field.attach.inc
Save field data for a new object.
_field_attach_load in modules/field/field.attach.inc
Load all fields for the most current version of each of a set of objects of a single object type.
_field_attach_update in modules/field/field.attach.inc
Save field data for an existing object.
_field_invoke in modules/field/field.attach.inc
Invoke a field hook.
_field_invoke_multiple in modules/field/field.attach.inc
Invoke a field operation across fields on multiple objects.

Code

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

<?php
function field_attach_extract_ids($object_type, $object) {
  require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
  return _field_attach_extract_ids($object_type, $object);
}
?>

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