field_attach_presave

  1. drupal
    1. drupal7
Versionen
drupal7 field_attach_presave($obj_type, &$object)

Perform necessary operations just before fields data get saved.

We take no specific action here, we just give other modules the opportunity to act.

Übergabeparameter

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

$object The object with fields to process.

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

Verwandte Themen

▾ 3 functions call field_attach_presave()

field_test_entity_save in modules/simpletest/tests/field_test.module
node_save in modules/node/node.module
Save changes to a node or add a new node.
user_save in modules/user/user.module
Save changes to a user account or add a new user.

Code

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

<?php
function field_attach_presave($obj_type, &$object) {
  require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
  return _field_attach_presave($obj_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