summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator/aggregator.module4
-rw-r--r--modules/aggregator/aggregator.test4
-rw-r--r--modules/blogapi/blogapi.module2
-rw-r--r--modules/comment/comment.test6
-rw-r--r--modules/filter/filter.module2
-rw-r--r--modules/forum/forum.module8
-rw-r--r--modules/search/search.module4
-rw-r--r--modules/taxonomy/taxonomy.module2
-rw-r--r--modules/translation/translation.module2
-rw-r--r--modules/trigger/trigger.module20
10 files changed, 27 insertions, 27 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index d918022ec..1c76fbd9d 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -469,7 +469,7 @@ function aggregator_save_feed($edit) {
'image' => '',
))
->execute();
-
+
}
if (!empty($edit['title'])) {
// The feed is being saved, save the categories as well.
@@ -501,7 +501,7 @@ function aggregator_remove($feed) {
->condition('iid', $iids, 'IN')
->execute();
}
-
+
db_delete('aggregator_item')
->condition('fid', $feed['fid'])
->execute();
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test
index 11fc75dcd..f59576113 100644
--- a/modules/aggregator/aggregator.test
+++ b/modules/aggregator/aggregator.test
@@ -279,7 +279,7 @@ class UpdateFeedTestCase extends AggregatorTestCase {
$remamining_fields = array('title', 'url', '');
foreach ($remamining_fields as $same_field) {
$feed = $this->createFeed();
-
+
// Get new feed data array and modify newly created feed.
$edit = $this->getFeedEditArray();
$edit['refresh'] = 1800; // Change refresh value.
@@ -469,7 +469,7 @@ class CategorizeFeedItemTestCase extends AggregatorTestCase {
->countQuery()
->execute()
->fetchField();
-
+
$this->assertEqual($feed->item_count, $categorized_count, t('Total items in feed equal to the total categorized feed items in database'));
}
}
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 554245f56..db7f01ddc 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -328,7 +328,7 @@ function blogapi_blogger_get_post($appkey, $postid, $username, $password) {
* TRUE if no error, or the blogapi_error().
*/
function blogapi_status_error_check($node, $original_status) {
-
+
$node = (object) $node;
$node_type_default = variable_get('node_options_'. $node->type, array('status', 'promote'));
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index c342a4baa..70c6d6cba 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -321,7 +321,7 @@ class CommentInterfaceTest extends CommentHelperCase {
$this->assertText('This discussion is closed', t('Posting to node with comments disabled'));
$this->assertNoField('edit-comment', t('Comment body field found.'));
- // Attempt to post to node with read-only comments.
+ // Attempt to post to node with read-only comments.
$this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'comment' => COMMENT_NODE_READ_ONLY));
$this->assertTrue($this->node, t('Article node created.'));
$this->drupalGet('comment/reply/' . $this->node->nid);
@@ -462,14 +462,14 @@ class CommentAnonymous extends CommentHelperCase {
$this->drupalLogin($this->admin_user);
$this->setAnonymousUserComment(FALSE, FALSE);
- // Attempt to view comments while disallowed.
+ // Attempt to view comments while disallowed.
// NOTE: if authenticated user has permission to post comments, then a
// "Login or register to post comments" type link may be shown.
$this->drupalLogout();
$this->drupalGet('node/' . $this->node->nid);
$this->assertNoRaw('<div id="comments">', t('Comments were not displayed.'));
$this->assertNoLink('Add new comment', t('Link to add comment was found.'));
-
+
// Attempt to view node-comment form while disallowed.
$this->drupalGet('comment/reply/' . $this->node->nid);
$this->assertText('You are not authorized to view comments', t('Error attempting to post comment.'));
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 7e21d5fac..e2e2a20f1 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -1031,7 +1031,7 @@ function _filter_xss_split($m, $store = FALSE) {
// Is there a closing XHTML slash at the end of the attributes?
$attrlist = preg_replace('%(\s?)/\s*$%', '\1', $attrlist, -1, $count);
$xhtml_slash = $count ? ' /' : '';
-
+
// Clean up attributes
$attr2 = implode(' ', _filter_xss_attributes($attrlist));
$attr2 = preg_replace('/[<>]/', '', $attr2);
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index b73d42631..8473ddde5 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -156,9 +156,9 @@ function forum_init() {
}
/**
- * _forum_nodeapi_check_node_type
- *
- * @param mixed $node
+ * _forum_nodeapi_check_node_type
+ *
+ * @param mixed $node
* @param mixed $vocabulary
* @access protected
* @return bool
@@ -235,7 +235,7 @@ function forum_nodeapi_prepare(&$node, $teaser, $page) {
/**
* Implementation of hook_nodeapi_validate().
- *
+ *
* Check in particular that only a "leaf" term in the associated taxonomy.
*/
function forum_nodeapi_validate(&$node, $teaser, $page) {
diff --git a/modules/search/search.module b/modules/search/search.module
index 08af04d03..924795dd3 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -579,8 +579,8 @@ function search_index($sid, $type, $text) {
// Insert results into search index
foreach ($results[0] as $word => $score) {
- // If a word already exists in the database, its score gets increased
- // appropriately. If not, we create a new record with the appropriate
+ // If a word already exists in the database, its score gets increased
+ // appropriately. If not, we create a new record with the appropriate
// starting score.
db_merge('search_index')->key(array(
'word' => $word,
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ffb126e4a..2ed3de9df 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -215,7 +215,7 @@ function taxonomy_vocabulary_save($vocabulary) {
if (empty($vocabulary->nodes)) {
$vocabulary->nodes = array();
}
-
+
if (!empty($vocabulary->name)) {
// Prevent leading and trailing spaces in vocabulary names.
$vocabulary->name = trim($vocabulary->name);
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index 6a8c73151..984f12738 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -251,7 +251,7 @@ function translation_nodeapi_delete(&$node, $teaser, $page) {
translation_remove_from_set($node);
}
}
-
+
/**
* Remove a node from its translation set (if any)
* and update the set accordingly.
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index b00cd358e..02568064d 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -202,7 +202,7 @@ function _trigger_normalize_node_context($type, $node) {
/**
* Simple wrapper function to make user hooks work with new entry points.
*
- * @TODO: Take advantage of the new API and reorganise/remove this function.
+ * @TODO: Take advantage of the new API and reorganise/remove this function.
*/
function _trigger_nodeapi(&$node, $op, $a3, $a4) {
// Keep objects for reuse so that changes actions make to objects can persist.
@@ -241,7 +241,7 @@ function _trigger_nodeapi(&$node, $op, $a3, $a4) {
}
}
}
-
+
/**
* Implementation of hook_nodeapi_view().
*/
@@ -384,51 +384,51 @@ function _trigger_normalize_user_context($type, $account) {
}
/**
- * trigger_user_login
+ * trigger_user_login
*/
function trigger_user_login(&$edit, &$account, $category) {
- _trigger_user('login', $edit, $account, $category);
+ _trigger_user('login', $edit, $account, $category);
}
/**
* Implementation of hook_user_logout().
*/
function trigger_user_logout(&$edit, &$account) {
- _trigger_user('logout', $edit, $account);
+ _trigger_user('logout', $edit, $account);
}
/**
* Implementation of hook_user_insert().
*/
function trigger_user_insert(&$edit, &$account, $category) {
- _trigger_user('insert', $edit, $account, $category);
+ _trigger_user('insert', $edit, $account, $category);
}
/**
* Implementation of hook_user_update().
*/
function trigger_user_update(&$edit, &$account, $category) {
- _trigger_user('update', $edit, $account, $category);
+ _trigger_user('update', $edit, $account, $category);
}
/**
* Implementation of hook_user_delete().
*/
function trigger_user_delete(&$edit, &$account, $category) {
- _trigger_user('delete', $edit, $account, $category);
+ _trigger_user('delete', $edit, $account, $category);
}
/**
* Implementation of hook_user_view().
*/
function trigger_user_view(&$edit, &$account, $category) {
- _trigger_user('view', $edit, $account, $category);
+ _trigger_user('view', $edit, $account, $category);
}
/**
* Simple wrapper function to make user hooks work with new entry points.
*
- * @TODO: Take advantage of the new API and reorganise/remove this function.
+ * @TODO: Take advantage of the new API and reorganise/remove this function.
*/
function _trigger_user($op, &$edit, &$account, $category = NULL) {
// Keep objects for reuse so that changes actions make to objects can persist.