/[drupal]/contributions/modules/actions/actions.module
ViewVC logotype

Diff of /contributions/modules/actions/actions.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.36, Tue Apr 29 18:27:08 2008 UTC revision 1.37, Tue Apr 29 19:31:27 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: actions.module,v 1.35 2008/04/24 19:56:37 jvandyk Exp $  // $Id: actions.module,v 1.36 2008/04/29 18:27:08 jvandyk Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 816  function actions_nodeapi(&$node, $op, $a Line 816  function actions_nodeapi(&$node, $op, $a
816    // Prevent recursion by tracking which operations have already been called.    // Prevent recursion by tracking which operations have already been called.
817    static $recursion;    static $recursion;
818    // Support a subset of operations.    // Support a subset of operations.
819    if (!in_array($op, array('view', 'update', 'presave', 'insert', 'delete')) || isset($recursion[$op])) {    if (!in_array($op, array('view', 'update', 'presave', 'insert', 'delete')) || isset($recursion[$op][$node->nid])) {
820      return;      return;
821    }    }
822    $recursion[$op] = TRUE;    $recursion[$op][$node->nid] = TRUE;
823    
824    $aids = _actions_get_hook_aids('nodeapi', $op);    $aids = _actions_get_hook_aids('nodeapi', $op);
825    if (!$aids) {    if (!$aids) {

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.2