node_invoke_nodeapi

  1. drupal
    1. drupal6
Versionen
drupal6 node_invoke_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL)

Invoke a hook_nodeapi() operation in all modules.

Übergabeparameter

&$node A node object.

$op A string containing the name of the nodeapi operation.

$a3, $a4 Arguments to pass on to the hook, after the $node and $op arguments.

Rückgabewert

The returned value of the invoked hooks.

▾ 16 functions call node_invoke_nodeapi()

blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
hook_search in developer-docs/hooks/core.php
Define a custom search routine.
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_load in modules/node/node.module
Load a node object from the database.
node_object_prepare in modules/node/node.pages.inc
node_revision_delete_confirm_submit in modules/node/node.pages.inc
node_save in modules/node/node.module
Save a node object into the database.
node_search in modules/node/node.module
Implementation of hook_search().
node_validate in modules/node/node.module
Perform validation checks on the given node.
node_view in modules/node/node.module
Generate a display of the given node.
translation_nodeapi in modules/translation/translation.module
Implementation of hook_nodeapi().
_node_index_node in modules/node/node.module
Index a single node.

Code

modules/node/node.module, line 675

<?php
function node_invoke_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  $return = array();
  foreach (module_implements('nodeapi') as $name) {
    $function = $name . '_nodeapi';
    $result = $function($node, $op, $a3, $a4);
    if (isset($result) && is_array($result)) {
      $return = array_merge($return, $result);
    }
    else if (isset($result)) {
      $return[] = $result;
    }
  }
  return $return;
}
?>

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