Mercurial > defr > drupal > core
comparison includes/actions.inc @ 9:acef7ccb09b5 6.4
Drupal 6.4
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 23 Dec 2008 14:32:08 +0100 |
| parents | fff6d4c8c043 |
| children | 589fb7c02327 |
comparison
equal
deleted
inserted
replaced
| 8:85cbd6048071 | 9:acef7ccb09b5 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: actions.inc,v 1.8.2.1 2008/04/23 18:06:36 dries Exp $ | 2 // $Id: actions.inc,v 1.8.2.3 2008/08/12 06:57:31 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 */ |
| 9 /** | 9 /** |
| 10 * Perform a given list of actions by executing their callback functions. | 10 * Perform a given list of actions by executing their callback functions. |
| 11 * | 11 * |
| 12 * Given the IDs of actions to perform, find out what the callbacks | 12 * Given the IDs of actions to perform, find out what the callbacks |
| 13 * for the actions are by querying the database. Then call each callback | 13 * for the actions are by querying the database. Then call each callback |
| 14 * using the function call $function($object, $context, $a1, $2) | 14 * using the function call $function($object, $context, $a1, $a2) |
| 15 * where $function is the name of a function written in compliance with | 15 * where $function is the name of a function written in compliance with |
| 16 * the action specification; that is, foo($object, $context). | 16 * the action specification; that is, foo($object, $context). |
| 17 * | 17 * |
| 18 * @param $action_ids | 18 * @param $action_ids |
| 19 * The ID of the action to perform. Can be a single action ID or an array | 19 * The ID of the action to perform. Can be a single action ID or an array |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 else { | 300 else { |
| 301 $link = l(t('Remove orphaned actions'), 'admin/build/actions/orphan'); | 301 $link = l(t('Remove orphaned actions'), 'admin/build/actions/orphan'); |
| 302 $count = count($actions_in_db); | 302 $count = count($actions_in_db); |
| 303 watchdog('actions', format_plural($count, 'One orphaned action (%orphans) exists in the actions table. !link', '@count orphaned actions (%orphans) exist in the actions table. !link', array('@count' => $count, '%orphans' => $orphans, '!link' => $link), 'warning')); | 303 watchdog('actions', format_plural($count, 'One orphaned action (%orphans) exists in the actions table. !link', '@count orphaned actions (%orphans) exist in the actions table. !link'), array('@count' => $count, '%orphans' => $orphans, '!link' => $link), WATCHDOG_WARNING); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 /** | 308 /** |
