node_invoke

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 node_invoke(&$node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL)
drupal7 node_invoke($node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL)

Invoke a node hook.

Übergabeparameter

&$node Either a node object, node array, or a string containing the node type.

$hook A string containing the name of the hook.

$a2, $a3, $a4 Arguments to pass on to the hook, after the $node argument.

Rückgabewert

The returned value of the invoked hook.

▾ 9 functions call node_invoke()

hook_update_index in developer-docs/hooks/core.php
Update Drupal's full-text index for this module.
node_build_content in modules/node/node.module
Builds a structured array representing the node's content.
node_delete in modules/node/node.module
Delete a node.
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_form in modules/node/node.pages.inc
Generate the node add/edit form array.
node_load in modules/node/node.module
Load a node object from the database.
node_object_prepare in modules/node/node.pages.inc
node_save in modules/node/node.module
Save a node object into the database.
node_validate in modules/node/node.module
Perform validation checks on the given node.

Code

modules/node/node.module, line 652

<?php
function node_invoke(&$node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL) {
  if (node_hook($node, $hook)) {
    $module = node_get_types('module', $node);
    if ($module == 'node') {
      $module = 'node_content'; // Avoid function name collisions.
    }
    $function = $module . '_' . $hook;
    return ($function($node, $a2, $a3, $a4));
  }
}
?>

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