hook_field_insert

Versions
7
hook_field_insert($obj_type, $object, $field, $instance, $langcode, &$items)

Define custom insert behavior for this module's field types.

Parameters

$obj_type The type of $object.

$object The object for the operation.

$field The field structure for the operation.

$instance The instance structure for $field on $object's bundle.

$langcode The language associated to $items.

$items $object->{$field['field_name']}[$langcode], or an empty array if unset.

Related topics

Code

modules/field/field.api.php, line 416

<?php
function hook_field_insert($obj_type, $object, $field, $instance, $langcode, &$items) {
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.