Mercurial > defr > drupal > core
comparison includes/actions.inc @ 7:fff6d4c8c043 6.3
Drupal 6.3
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:28 +0100 |
parents | c1f4ac30525a |
children | acef7ccb09b5 |
comparison
equal
deleted
inserted
replaced
6:2cfdc3c92142 | 7:fff6d4c8c043 |
---|---|
1 <?php | 1 <?php |
2 // $Id: actions.inc,v 1.8 2007/12/31 14:51:04 goba Exp $ | 2 // $Id: actions.inc,v 1.8.2.1 2008/04/23 18:06:36 dries Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * This is the actions engine for executing stored actions. | 6 * This is the actions engine for executing stored actions. |
7 */ | 7 */ |
41 */ | 41 */ |
42 function actions_do($action_ids, &$object, $context = NULL, $a1 = NULL, $a2 = NULL) { | 42 function actions_do($action_ids, &$object, $context = NULL, $a1 = NULL, $a2 = NULL) { |
43 static $stack; | 43 static $stack; |
44 $stack++; | 44 $stack++; |
45 if ($stack > variable_get('actions_max_stack', 35)) { | 45 if ($stack > variable_get('actions_max_stack', 35)) { |
46 watchdog('actions', 'Stack overflow: too many calls to actions_do(). Aborting to prevent infinite recursion.', WATCHDOG_ERROR); | 46 watchdog('actions', 'Stack overflow: too many calls to actions_do(). Aborting to prevent infinite recursion.', array(), WATCHDOG_ERROR); |
47 return; | 47 return; |
48 } | 48 } |
49 $actions = array(); | 49 $actions = array(); |
50 $available_actions = actions_list(); | 50 $available_actions = actions_list(); |
51 $result = array(); | 51 $result = array(); |