summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/field/field.api.php4
-rw-r--r--modules/field_ui/field_ui.test2
-rw-r--r--modules/filter/filter.test4
-rw-r--r--modules/locale/locale.admin.inc4
-rw-r--r--modules/node/node.api.php8
-rw-r--r--modules/node/node.module4
-rw-r--r--modules/node/node.pages.inc2
-rw-r--r--modules/node/node.test4
-rw-r--r--modules/rdf/rdf.api.php4
-rw-r--r--modules/search/search.api.php2
-rw-r--r--modules/system/image.gd.inc2
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/system/system.api.php4
-rw-r--r--modules/system/system.module8
-rw-r--r--modules/system/system.test4
15 files changed, 29 insertions, 29 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 89f3e6a9b..355301254 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -1474,12 +1474,12 @@ function hook_field_create_instance($instance) {
* @param $has_data
* Whether any data already exists for this field.
* @return
- * Throws a FieldUpdateForbiddenException to prevent the update from occuring.
+ * Throws a FieldUpdateForbiddenException to prevent the update from occurring.
*/
function hook_field_update_field_forbid($field, $prior_field, $has_data) {
// A 'list' field stores integer keys mapped to display values. If
// the new field will have fewer values, and any data exists for the
- // abandonded keys, the field will have no way to display them. So,
+ // abandoned keys, the field will have no way to display them. So,
// forbid such an update.
if ($has_data && count($field['settings']['allowed_values']) < count($prior_field['settings']['allowed_values'])) {
// Identify the keys that will be lost.
diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test
index 1dd82bd85..f14ed11c0 100644
--- a/modules/field_ui/field_ui.test
+++ b/modules/field_ui/field_ui.test
@@ -80,7 +80,7 @@ class FieldUITestCase extends DrupalWebTestCase {
* Test adding a new field.
*
* @todo Assert properties can bet set in the form and read back in $field and
- * $insatnces.
+ * $instances.
*/
function createField() {
// Create a test field.
diff --git a/modules/filter/filter.test b/modules/filter/filter.test
index bfc4d60b6..a15c26838 100644
--- a/modules/filter/filter.test
+++ b/modules/filter/filter.test
@@ -596,8 +596,8 @@ class FilterUnitTestCase extends DrupalUnitTestCase {
/**
* Test limiting allowed tags, XSS prevention and adding 'nofollow' to links.
*
- * XSS tests assume that script is dissallowed on default and src is allowed
- * on default, but on* and style are dissallowed.
+ * XSS tests assume that script is disallowed on default and src is allowed
+ * on default, but on* and style are disallowed.
*
* Script injection vectors mostly adopted from http://ha.ckers.org/xss.html.
*
diff --git a/modules/locale/locale.admin.inc b/modules/locale/locale.admin.inc
index 2226f5bef..4734018ec 100644
--- a/modules/locale/locale.admin.inc
+++ b/modules/locale/locale.admin.inc
@@ -107,7 +107,7 @@ function locale_languages_overview_form_submit($form, &$form_state) {
if ($form_state['values']['site_default'] == $langcode || $default->language == $langcode) {
// Automatically enable the default language and the language
// which was default previously (because we will not get the
- // value from that disabled checkox).
+ // value from that disabled checkbox).
$form_state['values']['enabled'][$langcode] = 1;
}
if ($form_state['values']['enabled'][$langcode]) {
@@ -535,7 +535,7 @@ function _locale_languages_configure_form_language_table(&$form, $type) {
$provider = $language_providers[$id];
// List the provider only if the current type is defined in its 'types' key.
- // If it is not defined default to all the configurabe language types.
+ // If it is not defined default to all the configurable language types.
$types = array_flip(isset($provider['types']) ? $provider['types'] : $form['#language_types']);
if (isset($types[$type])) {
diff --git a/modules/node/node.api.php b/modules/node/node.api.php
index c4b79754c..e2671f097 100644
--- a/modules/node/node.api.php
+++ b/modules/node/node.api.php
@@ -634,12 +634,12 @@ function hook_node_view_alter($build) {
* - "body_label": the label for the body field of this content type. Optional
* (defaults to 'Body').
* - "locked": boolean indicating whether the administrator can change the
- * machine name of this type. FALSE = changable (not locked),
- * TRUE = unchangable (locked). Optional (defaults to TRUE).
+ * machine name of this type. FALSE = changeable (not locked),
+ * TRUE = unchangeable (locked). Optional (defaults to TRUE).
*
* The machine-readable name of a node type should contain only letters,
* numbers, and underscores. Underscores will be converted into hyphens for the
- * purpose of contructing URLs.
+ * purpose of constructing URLs.
*
* All attributes of a node type that are defined through this hook (except for
* 'locked') can be edited by a site administrator. This includes the
@@ -694,7 +694,7 @@ function hook_node_info() {
* not need to take the weighted system into account, as it will be done
* automatically. It does, however, need to calculate a decimal between
* 0 and 1; be careful not to cast the entire score to an integer by
- * inadvertantly introducing a variable argument. Required.
+ * inadvertently introducing a variable argument. Required.
* - "arguments": if any arguments are required for the score, they can be
* specified in an array here.
*/
diff --git a/modules/node/node.module b/modules/node/node.module
index 4736ca18b..3b6e25081 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1287,7 +1287,7 @@ function node_language_negotiation_info() {
* An array of valid language objects.
*
* @return
- * A valid language code on succes, FALSE otherwise.
+ * A valid language code on success, FALSE otherwise.
*/
function node_language_provider($languages) {
require_once DRUPAL_ROOT . '/' . variable_get('path_inc', 'includes/path.inc');
@@ -3047,7 +3047,7 @@ function node_access_write_grants($node, $grants, $realm = NULL, $delete = TRUE)
* This can be used as an alternative to direct node_access_rebuild calls,
* allowing administrators to decide when they want to perform the actual
* (possibly time consuming) rebuild.
- * When unsure the current user is an adminisrator, node_access_rebuild
+ * When unsure the current user is an administrator, node_access_rebuild
* should be used instead.
*
* @param $rebuild
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 77b45f76b..a66352bf2 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -112,7 +112,7 @@ function node_object_prepare($node) {
*/
function node_form($form, &$form_state, $node) {
global $user;
- // This form has its own multistep persistance.
+ // This form has its own multistep persistence.
if ($form_state['rebuild']) {
$form_state['input'] = array();
}
diff --git a/modules/node/node.test b/modules/node/node.test
index 834a058e5..0d9b7e03b 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -565,11 +565,11 @@ class NodeBlockTestCase extends DrupalWebTestCase {
}
function testSearchFormBlock() {
- // Set block title to confirm that the interface is availble.
+ // Set block title to confirm that the interface is available.
$this->drupalPost('admin/structure/block/manage/node/syndicate/configure', array('title' => $this->randomName(8)), t('Save block'));
$this->assertText(t('The block configuration has been saved.'), t('Block configuration set.'));
- // Set the block to a region to confirm block is availble.
+ // Set the block to a region to confirm block is available.
$edit = array();
$edit['node_syndicate[region]'] = 'footer';
$this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
diff --git a/modules/rdf/rdf.api.php b/modules/rdf/rdf.api.php
index a4fc070a2..7fd0fd64e 100644
--- a/modules/rdf/rdf.api.php
+++ b/modules/rdf/rdf.api.php
@@ -34,13 +34,13 @@
* - datatype: Is used along with 'callback' to format data so that it is
* readable by machine. A typical example is a date which can be written
* in many different formats but should be translated into a uniform
- * format for machine comsumption.
+ * format for machine consumption.
* - callback: A function name to invoke for 'datatype'.
* - type: A string used to determine the type of RDFa markup which will be
* used in the final HTML output, depending on whether the RDF object is a
* literal text or another RDF resource.
* - rdftype: A special property used to define the type of the instance.
- * Its value shoud be an array of RDF classes.
+ * Its value should be an array of RDF classes.
*/
function hook_rdf_mapping() {
return array(
diff --git a/modules/search/search.api.php b/modules/search/search.api.php
index 517427853..1e1e99b65 100644
--- a/modules/search/search.api.php
+++ b/modules/search/search.api.php
@@ -74,7 +74,7 @@ function hook_search_reset() {
}
/**
- * Report the stutus of indexing.
+ * Report the status of indexing.
*
* @return
* An associative array with the key-value pairs:
diff --git a/modules/system/image.gd.inc b/modules/system/image.gd.inc
index d1b888e41..18ca62239 100644
--- a/modules/system/image.gd.inc
+++ b/modules/system/image.gd.inc
@@ -144,7 +144,7 @@ function image_gd_rotate(stdClass $image, $degrees, $background = NULL) {
}
}
- // Images are assigned a new color pallete when rotating, removing any
+ // Images are assigned a new color palette when rotating, removing any
// transparency flags. For GIF images, keep a record of the transparent color.
if ($image->info['extension'] == 'gif') {
$transparent_index = imagecolortransparent($image->resource);
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 9e58b25f3..be9597fdf 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1669,7 +1669,7 @@ function system_performance_settings() {
'#description' => t('External resources can be optimized automatically, which can reduce both the size and number of requests made to your website.') . $disabled_message,
);
- // Do not allow Drupal to gzip pages if the server alredy does that.
+ // Do not allow Drupal to gzip pages if the server already does that.
if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === FALSE) {
$js_hide = $cache == CACHE_DISABLED ? ' class="js-hide"' : '';
$form['bandwidth_optimization']['page_compression'] = array(
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index f92da9012..b1c82c920 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -905,7 +905,7 @@ function hook_image_toolkits() {
* invoke hook_mail_alter(). For example, a contributed module directly
* calling the drupal_mail_system()->mail() or PHP mail() function
* will not invoke this hook. All core modules use drupal_mail() for
- * messaging, it is best practice but not manditory in contributed modules.
+ * messaging, it is best practice but not mandatory in contributed modules.
*
* @param $message
* An array containing the message data. Keys in this array include:
@@ -1257,7 +1257,7 @@ function hook_xmlrpc_alter(&$methods) {
* - request_uri: The Request URI for the page the event happened in.
* - referer: The page that referred the use to the page where the event occurred.
* - ip: The IP address where the request for the page came from.
- * - timestamp: The UNIX timetamp of the date/time the event occurred
+ * - timestamp: The UNIX timestamp of the date/time the event occurred
* - severity: One of the following values as defined in RFC 3164 http://www.faqs.org/rfcs/rfc3164.html
* WATCHDOG_EMERG Emergency: system is unusable
* WATCHDOG_ALERT Alert: action must be taken immediately
diff --git a/modules/system/system.module b/modules/system/system.module
index 465f6e266..3e3702746 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -966,7 +966,7 @@ function system_menu() {
'weight' => -10,
);
- // Addititional categories
+ // Additional categories
$items['admin/config/user-interface'] = array(
'title' => 'User interface',
'description' => 'Tools that enhance the user interface.',
@@ -1978,7 +1978,7 @@ function system_check_directory($form_element) {
}
if (is_dir($directory) && !is_writable($directory) && !drupal_chmod($directory)) {
- // If the directory is not writable and cannont be made so.
+ // If the directory is not writable and cannot be made so.
form_set_error($form_element['#parents'][0], t('The directory %directory exists but is not writable and could not be made writable.', array('%directory' => $directory)));
watchdog('file system', 'The directory %directory exists but is not writable and could not be made writable.', array('%directory' => $directory), WATCHDOG_ERROR);
}
@@ -2061,7 +2061,7 @@ function system_update_files_database(&$files, $type) {
->execute();
}
- // Indiciate that the file exists already.
+ // Indicate that the file exists already.
$files[$file->name]->exists = TRUE;
}
else {
@@ -3052,7 +3052,7 @@ function system_image_toolkits() {
* @param $destination
* Where the file should be saved, if a directory is provided, file is saved
* in that directory with its original name. If a filename is provided,
- * remote fileis stored to that location. NOTE: Relative to drupal "files" directory"
+ * remote file is stored to that location. NOTE: Relative to drupal "files" directory"
*
* @param $overwrite boolean
* Defaults to TRUE, will overwrite existing files of the same name.
diff --git a/modules/system/system.test b/modules/system/system.test
index cca0f6689..fada5816b 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -483,7 +483,7 @@ class CronRunTestCase extends DrupalWebTestCase {
* Ensure that temporary files are removed.
*
* Create files for all the possible combinations of age and status. We are
- * using UPDATE statments rather than file_save() because it would set the
+ * using UPDATE statements rather than file_save() because it would set the
* timestamp.
*/
function testTempFileCleanup() {
@@ -1020,7 +1020,7 @@ class SystemBlockTestCase extends DrupalWebTestCase {
* Test displaying and hiding the powered-by block.
*/
function testPoweredByBlock() {
- // Set block title and some settings to confirm that the interface is availble.
+ // Set block title and some settings to confirm that the interface is available.
$this->drupalPost('admin/structure/block/manage/system/powered-by/configure', array('title' => $this->randomName(8)), t('Save block'));
$this->assertText(t('The block configuration has been saved.'), t('Block configuration set.'));