From efb5a76e9bf77fa02af0d9215332b1bc544b4591 Mon Sep 17 00:00:00 2001
From: Barrett Smith <barrett@datasmith.net>
Date: Fri, 11 Mar 2011 11:17:48 -0500
Subject: [PATCH] Issue #1066118: hyphenating 'passed in'

---
 modules/block/block.api.php                 |    2 +-
 modules/block/block.module                  |    2 +-
 modules/contextual/contextual.api.php       |    2 +-
 modules/field/field.api.php                 |    2 +-
 modules/field/field.attach.inc              |    2 +-
 modules/field/tests/field.test              |    4 ++--
 modules/filter/filter.pages.inc             |    2 +-
 modules/node/node.module                    |    6 +++---
 modules/node/tests/node_test.module         |    2 +-
 modules/simpletest/drupal_web_test_case.php |    4 ++--
 modules/simpletest/tests/file.test          |    2 +-
 modules/system/system.api.php               |    6 +++---
 modules/taxonomy/taxonomy.module            |    2 +-
 13 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/modules/block/block.api.php b/modules/block/block.api.php
index 90e23bd..8f9520c 100644
--- a/modules/block/block.api.php
+++ b/modules/block/block.api.php
@@ -20,7 +20,7 @@
  * identifier referred to as "delta" (the array key in the return value). Delta
  * values only need to be unique within your module, and they are used in the
  * following ways:
- * - Passed into the other block hooks in your module as an argument to
+ * - passed in to the other block hooks in your module as an argument to
  *   identify the block being configured or viewed.
  * - Used to construct the default HTML ID of "block-MODULE-DELTA" applied to
  *   each block when it is rendered (which can then be used for CSS styling or
diff --git a/modules/block/block.module b/modules/block/block.module
index dd7bf91..4d312ab 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -194,7 +194,7 @@ function _block_themes_access($theme) {
  *   to indicate that the default theme should be used.
  */
 function _block_custom_theme($theme = NULL) {
-  // We return exactly what was passed in, to guarantee that the page will
+  // We return exactly what was passed-in, to guarantee that the page will
   // always be displayed using the theme whose blocks are being configured.
   return $theme;
 }
diff --git a/modules/contextual/contextual.api.php b/modules/contextual/contextual.api.php
index e8f33ee..0a4ccd9 100644
--- a/modules/contextual/contextual.api.php
+++ b/modules/contextual/contextual.api.php
@@ -15,7 +15,7 @@
  *
  * This hook is invoked by contextual_pre_render_links(). The renderable array
  * of #type 'contextual_links', containing the entire contextual links data that
- * is passed in by reference. Further links may be added or existing links can
+ * is passed-in by reference. Further links may be added or existing links can
  * be altered.
  *
  * @param $element
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 1b3290f..22171e5 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -757,7 +757,7 @@ function hook_field_widget_info_alter(&$info) {
 /**
  * Return the form for a single field widget.
  *
- * Field widget form elements should be based on the passed in $element, which
+ * Field widget form elements should be based on the passed-in $element, which
  * contains the base form element properties derived from the field
  * configuration.
  *
diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc
index 5686652..550bade 100644
--- a/modules/field/field.attach.inc
+++ b/modules/field/field.attach.inc
@@ -877,7 +877,7 @@ function field_attach_presave($entity_type, $entity) {
 /**
  * Save field data for a new entity.
  *
- * The passed in entity must already contain its id and (if applicable)
+ * The passed-in entity must already contain its id and (if applicable)
  * revision id attributes.
  * Default values (if any) will be saved for fields not present in the
  * $entity.
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test
index 97510e4..cb1a6b2 100644
--- a/modules/field/tests/field.test
+++ b/modules/field/tests/field.test
@@ -17,7 +17,7 @@ class FieldTestCase extends DrupalWebTestCase {
   function setUp() {
     // Since this is a base class for many test cases, support the same
     // flexibility that DrupalWebTestCase::setUp() has for the modules to be
-    // passed in as either an array or a variable number of string arguments.
+    // passed-in as either an array or a variable number of string arguments.
     $modules = func_get_args();
     if (isset($modules[0]) && is_array($modules[0])) {
       $modules = $modules[0];
@@ -75,7 +75,7 @@ class FieldAttachTestCase extends FieldTestCase {
   function setUp($modules = array()) {
     // Since this is a base class for many test cases, support the same
     // flexibility that DrupalWebTestCase::setUp() has for the modules to be
-    // passed in as either an array or a variable number of string arguments.
+    // passed-in as either an array or a variable number of string arguments.
     if (!is_array($modules)) {
       $modules = func_get_args();
     }
diff --git a/modules/filter/filter.pages.inc b/modules/filter/filter.pages.inc
index 0fa87ad..dbbbe4c 100644
--- a/modules/filter/filter.pages.inc
+++ b/modules/filter/filter.pages.inc
@@ -39,7 +39,7 @@ function filter_tips_long() {
  *         ),
  *       );
  *     @endcode
- *   - long: (optional) Whether the passed in filter tips contain extended
+ *   - long: (optional) Whether the passed-in filter tips contain extended
  *     explanations, i.e. intended to be output on the path 'filter/tips'
  *     (TRUE), or are in a short format, i.e. suitable to be displayed below a
  *     form element. Defaults to FALSE.
diff --git a/modules/node/node.module b/modules/node/node.module
index c052f4b..c29fe20 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -364,7 +364,7 @@ function node_mark($nid, $timestamp) {
  *   Either a string or object, containing the node type information.
  *
  * @return
- *   Node type of the passed in data.
+ *   Node type of the passed-in data.
  */
 function _node_extract_type($node) {
   return is_object($node) ? $node->type : $node;
@@ -1413,7 +1413,7 @@ function node_show($node, $message = FALSE) {
 }
 
 /**
- * Returns whether the current page is the full page view of the passed in node.
+ * Returns whether the current page is the full page view of the passed-in node.
  *
  * @param $node
  *   A node object.
@@ -1844,7 +1844,7 @@ function _node_revision_access($node, $op = 'view') {
     }
     else {
       // First check the access to the current revision and finally, if the
-      // node passed in is not the current revision then access to that, too.
+      // node passed-in is not the current revision then access to that, too.
       $access[$node->vid] = node_access($op, $node_current_revision) && ($is_current_revision || node_access($op, $node));
     }
   }
diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module
index b0ebc14..38c3d2d 100644
--- a/modules/node/tests/node_test.module
+++ b/modules/node/tests/node_test.module
@@ -11,7 +11,7 @@
  */
 function node_test_node_load($nodes, $types) {
   // Add properties to each loaded node which record the parameters that were
-  // passed in to this function, so the tests can check that (a) this hook was
+  // passed-in to this function, so the tests can check that (a) this hook was
   // called, and (b) the parameters were what we expected them to be.
   $nids = array_keys($nodes);
   ksort($nids);
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index a0cd114..67c7fa0 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1151,7 +1151,7 @@ class DrupalWebTestCase extends DrupalTestCase {
    * If a user is already logged in, then the current user is logged out before
    * logging in the specified user.
    *
-   * Please note that neither the global $user nor the passed in user object is
+   * Please note that neither the global $user nor the passed-in user object is
    * populated with data of the logged in user. If you need full access to the
    * user object after logging in, it must be updated manually. If you also need
    * access to the plain-text password of the user (set by drupalCreateUser()),
@@ -1306,7 +1306,7 @@ class DrupalWebTestCase extends DrupalTestCase {
     // Install the modules specified by the testing profile.
     module_enable($profile_details['dependencies'], FALSE);
 
-    // Install modules needed for this test. This could have been passed in as
+    // Install modules needed for this test. This could have been passed-in as
     // either a single array argument or a variable number of string arguments.
     // @todo Remove this compatibility layer in Drupal 8, and only accept
     // $modules as a single array argument.
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index dc12b1b..4bc2b4c 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -2044,7 +2044,7 @@ class FileValidateTest extends FileHookTestCase {
     $this->assertEqual(file_validate($file, $passing), array(), t('Validating passes.'));
     $this->assertFileHooksCalled(array('validate'));
 
-    // Now test for failures in validators passed in and by hook_validate.
+    // Now test for failures in validators passed-in and by hook_validate.
     file_test_reset();
     file_test_set_return('validate', array('Epic fail'));
     $failing = array('file_test_validator' => array(array('Failed', 'Badly')));
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 5481e81..fe78512 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -873,7 +873,7 @@ function hook_page_build(&$page) {
  *
  * This hook is invoked by menu_get_item() and allows for run-time alteration of router
  * information (page_callback, title, and so on) before it is translated and checked for
- * access. The passed in $router_item is statically cached for the current request, so this
+ * access. The passed-in $router_item is statically cached for the current request, so this
  * hook is only invoked once for any router item that is retrieved via menu_get_item().
  *
  * Usually, modules will only want to inspect the router item and conditionally
@@ -1326,7 +1326,7 @@ function hook_menu_link_delete($link) {
  * Alter tabs and actions displayed on the page before they are rendered.
  *
  * This hook is invoked by menu_local_tasks(). The system-determined tabs and
- * actions are passed in by reference. Additional tabs or actions may be added,
+ * actions are passed-in by reference. Additional tabs or actions may be added,
  * or existing items altered.
  *
  * Each tab or action is an associative array containing:
@@ -1440,7 +1440,7 @@ function hook_menu_breadcrumb_alter(&$active_trail, $item) {
  * Alter contextual links before they are rendered.
  *
  * This hook is invoked by menu_contextual_links(). The system-determined
- * contextual links are passed in by reference. Additional links may be added
+ * contextual links are passed-in by reference. Additional links may be added
  * or existing links can be altered.
  *
  * Each contextual link must at least contain:
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index f170430..d14a169 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -746,7 +746,7 @@ function template_preprocess_taxonomy_term(&$variables) {
 }
 
 /**
- * Returns whether the current page is the page of the passed in term.
+ * Returns whether the current page is the page of the passed-in term.
  *
  * @param $term
  *   A term object.
-- 
1.7.1

