comparison includes/actions.inc @ 19:3edae6ecd6c6 6.9

Drupal 6.9
author Franck Deroche <franck@defr.org>
date Thu, 15 Jan 2009 10:15:56 +0100
parents 8b6c45761e01
children
comparison
equal deleted inserted replaced
18:f5131a9cd9e5 19:3edae6ecd6c6
1 <?php 1 <?php
2 // $Id: actions.inc,v 1.8.2.5 2008/10/16 12:45:53 goba Exp $ 2 // $Id: actions.inc,v 1.8.2.6 2009/01/06 17:02:58 goba 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 */
250 * receive action IDs. This is not necessarily the best approach, 250 * receive action IDs. This is not necessarily the best approach,
251 * but it is the most straightforward. 251 * but it is the most straightforward.
252 */ 252 */
253 function actions_synchronize($actions_in_code = array(), $delete_orphans = FALSE) { 253 function actions_synchronize($actions_in_code = array(), $delete_orphans = FALSE) {
254 if (!$actions_in_code) { 254 if (!$actions_in_code) {
255 $actions_in_code = actions_list(); 255 $actions_in_code = actions_list(TRUE);
256 } 256 }
257 $actions_in_db = array(); 257 $actions_in_db = array();
258 $result = db_query("SELECT * FROM {actions} WHERE parameters = ''"); 258 $result = db_query("SELECT * FROM {actions} WHERE parameters = ''");
259 while ($action = db_fetch_object($result)) { 259 while ($action = db_fetch_object($result)) {
260 $actions_in_db[$action->callback] = array('aid' => $action->aid, 'description' => $action->description); 260 $actions_in_db[$action->callback] = array('aid' => $action->aid, 'description' => $action->description);