summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-01-22 12:46:07 +0000
committerDries Buytaert <dries@buytaert.net>2009-01-22 12:46:07 +0000
commit938c7c07a38129deeb4eabe805e3ae80db8ccead (patch)
tree69e6b62e0aedec33265d1b3c0a50fcd154062dcd /modules
parent4488b2481e327cbcbbbb9dfc439e8557a8942f8c (diff)
downloadbrdo-938c7c07a38129deeb4eabe805e3ae80db8ccead.tar.gz
brdo-938c7c07a38129deeb4eabe805e3ae80db8ccead.tar.bz2
- Patch #360605 by Berdir: made CVS HEAD compatible with PHP5.3.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module2
-rw-r--r--modules/dblog/dblog.module2
-rw-r--r--modules/node/node.module2
-rw-r--r--modules/poll/poll.module2
-rw-r--r--modules/profile/profile.module2
-rw-r--r--modules/simpletest/simpletest.test4
-rw-r--r--modules/statistics/statistics.module2
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/trigger/trigger.module4
-rw-r--r--modules/upload/upload.module6
-rw-r--r--modules/user/user.api.php6
-rw-r--r--modules/user/user.module2
12 files changed, 19 insertions, 17 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 951ac3c95..da9ea6f35 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -705,7 +705,7 @@ function comment_nodeapi_rss_item($node) {
/**
* Implementation of hook_user_cancel().
*/
-function comment_user_cancel(&$edit, &$account, $method) {
+function comment_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
db_update('comment')->fields(array('status' => 0))->condition('uid', $account->uid)->execute();
diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module
index 03ab8c46d..44f029ed9 100644
--- a/modules/dblog/dblog.module
+++ b/modules/dblog/dblog.module
@@ -104,7 +104,7 @@ function dblog_cron() {
/**
* Implementation of hook_user_cancel().
*/
-function dblog_user_cancel(&$edit, &$account, $method) {
+function dblog_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_reassign':
db_update('watchdog')->fields(array('uid' => 0))->condition('uid', $account->uid)->execute();
diff --git a/modules/node/node.module b/modules/node/node.module
index 63ac460ad..3936359ad 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1481,7 +1481,7 @@ function node_ranking() {
/**
* Implementation of hook_user_cancel().
*/
-function node_user_cancel(&$edit, &$account, $method) {
+function node_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
// Unpublish nodes (current revisions).
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 101528975..86ceee59d 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -817,7 +817,7 @@ function poll_cancel($form, &$form_state) {
/**
* Implementation of hook_user_cancel().
*/
-function poll_user_cancel(&$edit, &$account, $method) {
+function poll_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_reassign':
db_update('poll_vote')->fields(array('uid' => 0))->condition('uid', $account->uid)->execute();
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 9d11b0a9d..e915a97ad 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -254,7 +254,7 @@ function profile_user_validate(&$edit, &$user, $category = NULL) {
/**
* Implementation of hook_user_categories().
*/
-function profile_user_categories(&$edit, &$user, $category = NULL) {
+function profile_user_categories($edit, $user, $category = NULL) {
return profile_categories();
}
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test
index 3c4726526..d3934988d 100644
--- a/modules/simpletest/simpletest.test
+++ b/modules/simpletest/simpletest.test
@@ -147,7 +147,9 @@ class SimpleTestFunctionalTest extends DrupalWebTestCase {
$this->assertAssertion('This is nothing.', 'Other', 'Pass', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
// Check that errors that occur inside PHP internal functions are correctly reported.
- $this->assertAssertion('The second argument should be either an array or an object', 'Warning', 'Fail', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
+ // The exact error message differs between PHP versions so we check only
+ // the function name 'array_key_exists'.
+ $this->assertAssertion('array_key_exists', 'Warning', 'Fail', 'simpletest.test', 'SimpleTestFunctionalTest->stubTest()');
$this->test_ids[] = $test_id = $this->getTestIdFromResults();
$this->assertTrue($test_id, t('Found test ID in results.'));
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 7a8d5b4a2..4bb696098 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -186,7 +186,7 @@ function statistics_menu() {
/**
* Implementation of hook_user_cancel().
*/
-function statistics_user_cancel(&$edit, &$account, $method) {
+function statistics_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_reassign':
db_update('accesslog')->fields(array('uid' => 0))->condition('uid', $account->uid)->execute();
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index afe65919c..703de2d01 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -2046,7 +2046,7 @@ function theme_system_admin_by_module($menu_items) {
* An array of requirements.
* @ingroup themeable
*/
-function theme_status_report(&$requirements) {
+function theme_status_report($requirements) {
$i = 0;
$output = '<table class="system-status-report">';
foreach ($requirements as $requirement) {
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index bc78d2323..872ebf4ea 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -422,7 +422,7 @@ function trigger_user_login(&$edit, &$account, $category) {
/**
* Implementation of hook_user_logout().
*/
-function trigger_user_logout(&$edit, &$account) {
+function trigger_user_logout($edit, $account) {
_trigger_user('logout', $edit, $account);
}
@@ -443,7 +443,7 @@ function trigger_user_update(&$edit, &$account, $category) {
/**
* Implementation of hook_user_cancel().
*/
-function trigger_user_cancel(&$edit, &$account, $method) {
+function trigger_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_reassign':
case 'user_cancel_delete':
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 71e8e3a16..0971c978b 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -282,7 +282,7 @@ function upload_file_load($files) {
/**
* Implementation of hook_file_references().
*/
-function upload_file_references(&$file) {
+function upload_file_references($file) {
// If upload.module is still using a file, do not let other modules delete it.
$count = db_query('SELECT COUNT(*) FROM {upload} WHERE fid = :fid', array(':fid' => $file->fid))->fetchField();
if ($count) {
@@ -294,7 +294,7 @@ function upload_file_references(&$file) {
/**
* Implementation of hook_file_delete().
*/
-function upload_file_delete(&$file) {
+function upload_file_delete($file) {
// Delete all information associated with the file.
db_delete('upload')->condition('fid', $file->fid)->execute();
}
@@ -604,7 +604,7 @@ function _upload_form($node) {
*
* @ingroup themeable
*/
-function theme_upload_form_current(&$form) {
+function theme_upload_form_current($form) {
$header = array('', t('Delete'), t('List'), t('Description'), t('Weight'), t('Size'));
drupal_add_tabledrag('upload-attachments', 'order', 'sibling', 'upload-weight');
diff --git a/modules/user/user.api.php b/modules/user/user.api.php
index 7398bb0ee..4d7feef77 100644
--- a/modules/user/user.api.php
+++ b/modules/user/user.api.php
@@ -94,9 +94,9 @@ function hook_user($op, &$edit, &$account, $category = NULL) {
*
* Expensive operations should be added to the global batch with batch_set().
*
- * @param &$edit
+ * @param $edit
* The array of form values submitted by the user.
- * @param &$account
+ * @param $account
* The user object on which the operation is being performed.
* @param $method
* The account cancellation method.
@@ -105,7 +105,7 @@ function hook_user($op, &$edit, &$account, $category = NULL) {
* @see hook_user_cancel_methods_alter()
* @see user_cancel()
*/
-function hook_user_cancel(&$edit, &$account, $method) {
+function hook_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
// Unpublish nodes (current revisions).
diff --git a/modules/user/user.module b/modules/user/user.module
index d2e720758..97f108413 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -790,7 +790,7 @@ function user_user_submit(&$edit, &$account, $category = NULL) {
/**
* Implementation of hook_user_categories.
*/
-function user_user_categories(&$edit, &$account, $category = NULL) {
+function user_user_categories($edit, $account, $category = NULL) {
return array(array('name' => 'account', 'title' => t('Account settings'), 'weight' => 1));
}