| Versionen | |
|---|---|
| drupal7 | field_attach_extract_ids($object_type, $object) |
Helper function to extract id, vid, and bundle name from an object.
$obj_type The type of $object; e.g. 'node' or 'user'.
$object The object from which to extract values.
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.
modules/
<?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