comparison modules/system/system.module @ 11:589fb7c02327 6.5

Drupal 6.5
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:19 +0100
parents acef7ccb09b5
children 8b6c45761e01
comparison
equal deleted inserted replaced
10:6f15c9d74937 11:589fb7c02327
1 <?php 1 <?php
2 // $Id: system.module,v 1.585.2.16 2008/08/13 23:59:13 drumm Exp $ 2 // $Id: system.module,v 1.585.2.20 2008/10/08 20:12:18 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Configuration system that lets administrators modify the workings of the site. 6 * Configuration system that lets administrators modify the workings of the site.
7 */ 7 */
8 8
9 /** 9 /**
10 * The current system version. 10 * The current system version.
11 */ 11 */
12 define('VERSION', '6.4'); 12 define('VERSION', '6.5');
13 13
14 /** 14 /**
15 * Core API compatibility. 15 * Core API compatibility.
16 */ 16 */
17 define('DRUPAL_CORE_COMPATIBILITY', '6.x'); 17 define('DRUPAL_CORE_COMPATIBILITY', '6.x');
37 define('DRUPAL_MINIMUM_PGSQL', '7.4'); 37 define('DRUPAL_MINIMUM_PGSQL', '7.4');
38 38
39 /** 39 /**
40 * Maximum age of temporary files in seconds. 40 * Maximum age of temporary files in seconds.
41 */ 41 */
42 define('DRUPAL_MAXIMUM_TEMP_FILE_AGE', 1440); 42 define('DRUPAL_MAXIMUM_TEMP_FILE_AGE', 21600);
43 43
44 /** 44 /**
45 * Implementation of hook_help(). 45 * Implementation of hook_help().
46 */ 46 */
47 function system_help($path, $arg) { 47 function system_help($path, $arg) {
1325 $unconfigurable[] = $array; 1325 $unconfigurable[] = $array;
1326 } 1326 }
1327 } 1327 }
1328 1328
1329 $row = array(); 1329 $row = array();
1330 $instances_present = db_fetch_object(db_query("SELECT aid FROM {actions} WHERE parameters != ''")); 1330 $instances_present = db_fetch_object(db_query("SELECT aid FROM {actions} WHERE parameters <> ''"));
1331 $header = array( 1331 $header = array(
1332 array('data' => t('Action type'), 'field' => 'type'), 1332 array('data' => t('Action type'), 'field' => 'type'),
1333 array('data' => t('Description'), 'field' => 'description'), 1333 array('data' => t('Description'), 'field' => 'description'),
1334 array('data' => $instances_present ? t('Operations') : '', 'colspan' => '2') 1334 array('data' => $instances_present ? t('Operations') : '', 'colspan' => '2')
1335 ); 1335 );
1429 // Numeric action denotes saved instance of a configurable action; 1429 // Numeric action denotes saved instance of a configurable action;
1430 // else we are creating a new action instance. 1430 // else we are creating a new action instance.
1431 if (is_numeric($action)) { 1431 if (is_numeric($action)) {
1432 $aid = $action; 1432 $aid = $action;
1433 // Load stored parameter values from database. 1433 // Load stored parameter values from database.
1434 $data = db_fetch_object(db_query("SELECT * FROM {actions} WHERE aid = %d", intval($aid))); 1434 $data = db_fetch_object(db_query("SELECT * FROM {actions} WHERE aid = '%s'", $aid));
1435 $edit['actions_description'] = $data->description; 1435 $edit['actions_description'] = $data->description;
1436 $edit['actions_type'] = $data->type; 1436 $edit['actions_type'] = $data->type;
1437 $function = $data->callback; 1437 $function = $data->callback;
1438 $action = md5($data->callback); 1438 $action = md5($data->callback);
1439 $params = unserialize($data->parameters); 1439 $params = unserialize($data->parameters);