summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc2
-rw-r--r--modules/node/node.admin.inc2
-rw-r--r--modules/node/node.api.php4
-rw-r--r--modules/node/node.module10
4 files changed, 9 insertions, 9 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index ab8dfa874..be1dd7654 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -54,7 +54,7 @@ function theme_node_admin_overview($name, $type) {
function node_type_form(&$form_state, $type = NULL) {
drupal_add_js(drupal_get_path('module', 'node') .'/content_types.js');
if (!isset($type->type)) {
- // This is a new type. Node module managed types are custom and unlocked.
+ // This is a new type. Node module managed types are custom and unlocked.
$type = node_type_set_defaults(array('custom' => 1, 'locked' => 0));
}
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index c61794894..88a538d00 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -561,7 +561,7 @@ function node_admin_nodes_submit($form, &$form_state) {
cache_clear_all();
}
else {
- // We need to rebuild the form to go to a second step. For example, to
+ // We need to rebuild the form to go to a second step. For example, to
// show the confirmation form for the deletion of nodes.
$form_state['rebuild'] = TRUE;
}
diff --git a/modules/node/node.api.php b/modules/node/node.api.php
index df95d26aa..2c8f43387 100644
--- a/modules/node/node.api.php
+++ b/modules/node/node.api.php
@@ -739,8 +739,8 @@ function hook_update($node) {
* this module), use hook_nodeapi() instead.
*
* Changes made to the $node object within a hook_validate() function will
- * have no effect. The preferred method to change a node's content is to use
- * hook_submit() or hook_nodeapi($op='submit') instead. If it is really
+ * have no effect. The preferred method to change a node's content is to use
+ * hook_submit() or hook_nodeapi($op='submit') instead. If it is really
* necessary to change the node at the validate stage, you can use function
* form_set_value().
*
diff --git a/modules/node/node.module b/modules/node/node.module
index c657a1548..db7871d49 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -382,7 +382,7 @@ function node_teaser($body, $format = NULL, $size = NULL) {
// Initialize it to maximum in order to find the minimum.
$min_rpos = $max_rpos;
- // Store the reverse of the teaser. We use strpos on the reversed needle and
+ // Store the reverse of the teaser. We use strpos on the reversed needle and
// haystack for speed and convenience.
$reversed = strrev($teaser);
@@ -417,7 +417,7 @@ function node_teaser($body, $format = NULL, $size = NULL) {
// If a break point was found in this group, slice and return the teaser.
if ($min_rpos !== $max_rpos) {
- // Don't slice with length 0. Length must be <0 to slice from RHS.
+ // Don't slice with length 0. Length must be <0 to slice from RHS.
return ($min_rpos === 0) ? $teaser : substr($teaser, 0, 0 - $min_rpos);
}
}
@@ -1003,7 +1003,7 @@ function node_save(&$node) {
// When inserting a node, $node->log must be set because
// {node_revision}.log does not (and cannot) have a default
- // value. If the user does not have permission to create
+ // value. If the user does not have permission to create
// revisions, however, the form will not contain an element for
// log so $node->log will be unset at this point.
if (!isset($node->log)) {
@@ -1011,7 +1011,7 @@ function node_save(&$node) {
}
// For the same reasons, make sure we have $node->teaser and
- // $node->body. We should consider making these fields nullable
+ // $node->body. We should consider making these fields nullable
// in a future version since node types are not required to use them.
if (!isset($node->teaser)) {
$node->teaser = '';
@@ -3012,4 +3012,4 @@ function node_elements() {
*/
function theme_node_links($element) {
return theme('links', $element['#value'], array('class' => 'links inline'));
-} \ No newline at end of file
+}