diff --git a/README.txt b/README.txt index a4a5631..c1e0400 100644 --- a/README.txt +++ b/README.txt @@ -85,7 +85,7 @@ Upgrade from Rules 6.x-1.x to Rules 7.x-2.x for Drupal 7. The Drupal 6 tasks are preserved in the database as long as you do not clear your Rules 1.x configuration though. * The Rules Forms module has not been updated to Drupal 7 and there are no - plans to do so, as unfortuntely the module's design does not allow for + plans to do so, as unfortunately the module's design does not allow for automatic configuration updates. Thus, a possible future Rules 2.x Forms module is likely to work different, e.g. by working only for entity forms on the field level. diff --git a/includes/faces.inc b/includes/faces.inc index 213cd81..6e9bcc6 100644 --- a/includes/faces.inc +++ b/includes/faces.inc @@ -147,12 +147,12 @@ if (!class_exists('FacesExtendable', FALSE)) { /** * Returns whether the object can face as the given interface, thus it - * returns TRUE if this oject has been extended by an appropriate + * returns TRUE if this object has been extended by an appropriate * implementation. * * @param $interface - * Optional. A interface to test for. If it's omitted, all interfaces that - * the object can be faced as are returned. + * Optional. An interface to test for. If it's omitted, all interfaces + * that the object can be faced as are returned. * @return * Whether the object can face as the interface or an array of interface * names. @@ -235,7 +235,7 @@ if (!class_exists('FacesExtendable', FALSE)) { * Override the implementation of an extended method. * * @param $methods - * An array of methods of the interface, that should be overriden, where + * An array of methods of the interface, that should be overridden, where * the keys are methods to override and the values the callback functions * to use. * @param $includes diff --git a/includes/rules.core.inc b/includes/rules.core.inc index 04b174b..56a33d0 100644 --- a/includes/rules.core.inc +++ b/includes/rules.core.inc @@ -113,7 +113,7 @@ class RulesEntityController extends EntityAPIControllerExportable { $error_msg = t('Unable to parse the pasted export.'); return FALSE; } - // The key ist the configuration name and the value the actual export. + // The key is the configuration name and the value the actual export. list($name, $export) = each($export); if (!isset($export['PLUGIN'])) { $error_msg = t('Export misses plugin information.'); @@ -532,7 +532,7 @@ abstract class RulesPlugin extends RulesExtendable { * Iterate over all elements nested below the current element. * * This helper can be used to recursively iterate over all elements of a - * configuration. To iterate over the children only, just regulary iterate + * configuration. To iterate over the children only, just regularly iterate * over the object. * * @param $mode @@ -845,7 +845,7 @@ abstract class RulesPlugin extends RulesExtendable { * Returns $this to support chained usage. * * @throws RulesIntegrityException - * In case of a failed integraty check, a RulesIntegrityException exception + * In case of a failed integrity check, a RulesIntegrityException exception * is thrown. */ public function integrityCheck() { @@ -1253,7 +1253,7 @@ abstract class RulesPlugin extends RulesExtendable { } /** - * Seamlessy invokes the method implemented via faces without having to think + * Seamlessly invokes the method implemented via faces without having to think * about references. */ public function form(&$form, &$form_state, array $options = array()) { @@ -1344,7 +1344,7 @@ abstract class RulesPlugin extends RulesExtendable { * Optional. Set to TRUE to format the export using PHP arrays. By default * JSON is used. * @return - * The exported confiugration. + * The exported configuration. * * @see rules_import() */ @@ -1394,7 +1394,7 @@ abstract class RulesPlugin extends RulesExtendable { } /** - * Finalizies the configuration export by adding general attributes regarding + * Finalizes the configuration export by adding general attributes regarding * the configuration and returns it in the right format. */ protected function returnExport($export, $prefix = '', $php = FALSE) { @@ -1738,7 +1738,7 @@ abstract class RulesAbstractPlugin extends RulesPlugin { // Cache only the plugin implementation specific callbacks. $info['faces_cache'][$interface] = array($methods, array_filter($file_names)); } - // Filter out interfaces with no overriden methods. + // Filter out interfaces with no overridden methods. $info['faces_cache'] = rules_filter_array($info['faces_cache'], 0, TRUE); // We don't need that any more. unset($info['callbacks'], $info['base']); @@ -2312,7 +2312,7 @@ abstract class RulesContainerPlugin extends RulesPlugin implements IteratorAggre */ public function sortChildren($deep = FALSE) { // Make sure the array order is kept in case two children have the same - // weight by ensuring later childrens would have higher weights. + // weight by ensuring later children would have higher weights. foreach (array_values($this->children) as $i => $child) { $child->weight += $i / 1000; } diff --git a/includes/rules.plugins.inc b/includes/rules.plugins.inc index 90b306d..e4f4b96 100644 --- a/includes/rules.plugins.inc +++ b/includes/rules.plugins.inc @@ -160,7 +160,7 @@ class Rule extends RulesActionContainer { /** * Get an iterator over all contained conditions. Note that this iterator also - * implements the ArrayAcces interface. + * implements the ArrayAccess interface. * * @return RulesRecursiveElementIterator */ @@ -324,7 +324,7 @@ class Rule extends RulesActionContainer { } /** - * Overriden to expose the variables of all actions for embedded rules. + * Overridden to expose the variables of all actions for embedded rules. */ public function providesVariables() { $provides = parent::providesVariables(); diff --git a/includes/rules.processor.inc b/includes/rules.processor.inc index 468bea0..abd1181 100644 --- a/includes/rules.processor.inc +++ b/includes/rules.processor.inc @@ -266,7 +266,7 @@ abstract class RulesDataInputEvaluator extends RulesDataProcessor { } /** - * Overriden to prepare input evaluator processors. The setting is expected + * Overridden to prepare input evaluator processors. The setting is expected * to be the input value to be evaluated later on and is replaced by the * suiting processor. */ @@ -284,7 +284,7 @@ abstract class RulesDataInputEvaluator extends RulesDataProcessor { } /** - * Overriden to just attach the help() of evaluators. + * Overridden to just attach the help() of evaluators. */ public static function attachForm(&$form, $settings, $param_info, $var_info, $access_check = TRUE) { foreach (self::evaluators($param_info, $access_check) as $name => $info) { @@ -310,7 +310,7 @@ abstract class RulesDataInputEvaluator extends RulesDataProcessor { } /** - * Prepares the evalution, e.g. to determine whether the input evaluator has + * Prepares the evaluation, e.g. to determine whether the input evaluator has * been used. If this evaluator should be skipped just unset $this->setting. * * @param $text diff --git a/includes/rules.state.inc b/includes/rules.state.inc index 98ef016..118973d 100644 --- a/includes/rules.state.inc +++ b/includes/rules.state.inc @@ -236,7 +236,7 @@ class RulesState { /** * Merges the info about to be saved variables form the given state into the * existing state. Therefor we can aggregate saves from invoked components. - * Merged in saves are removed from the given state, but not mergable saves + * Merged in saves are removed from the given state, but not mergeable saves * remain there. * * @param $state @@ -291,7 +291,7 @@ class RulesState { try { foreach (explode(':', $parts[1]) as $name) { if ($wrapper instanceof EntityListWrapper || $wrapper instanceof EntityStructureWrapper) { - // Make sure we are usign the right language. Wrappers might be cached + // Make sure we are using the right language. Wrappers might be cached // and have previous langcodes set, so always set the right language. if ($wrapper instanceof EntityStructureWrapper) { $wrapper->language($langcode); @@ -585,7 +585,8 @@ class RulesData { $property_info['properties'][$key]['rules assertion'] = $assertion[$key]; $property_info['properties'][$key]['property info alter'] = array('RulesData', 'applyMetadataAssertions'); - // Apply any 'type' and 'bundle' assertion directly to the propertyinfo. + // Apply any 'type' and 'bundle' assertion directly to the property + // info. if (isset($assertion[$key]['#info']['type'])) { $type = $assertion[$key]['#info']['type']; // Support asserting a type in case of generic entity references only. @@ -721,7 +722,7 @@ abstract class RulesIdentifiableDataWrapper extends EntityStructureWrapper { } /** - * Prepare for serializiation. + * Prepare for serialization. */ public function __sleep() { $vars = parent::__sleep(); diff --git a/includes/rules.upgrade.inc b/includes/rules.upgrade.inc index e70d3ec..2fced5e 100644 --- a/includes/rules.upgrade.inc +++ b/includes/rules.upgrade.inc @@ -28,7 +28,7 @@ function rules_upgrade_form($form, &$form_state) { '#prefix' => '

', '#suffix' => '

', '#markup' => t('This form allows you to convert rules or rule sets from Rules 1.x to Rules 2.x.') . ' ' . - t('In order to convert a rule or rule set make sure you have all dependend modules installed and upgraded, i.e. modules which provide Rules integration that has been used in your rules or rule sets. In addition those modules may need to implement some Rules specific update hooks for the conversion to properly work.') . ' ' . + t('In order to convert a rule or rule set make sure you have all dependent modules installed and upgraded, i.e. modules which provide Rules integration that has been used in your rules or rule sets. In addition those modules may need to implement some Rules specific update hooks for the conversion to properly work.') . ' ' . t('After conversion, the old rules and rule sets will stay in the database until you manually delete them. That way you can make sure the conversion has gone right before you delete the old rules and rule sets.') ); @@ -557,7 +557,7 @@ function rules_action_save_variable_upgrade($element, $target) { // System.module integration. function rules_action_set_breadcrumb_upgrade_map_name($element) { - return 'breadcumb_set'; + return 'breadcrumb_set'; } function rules_action_mail_to_user_upgrade_map_name($element) { return 'mail'; diff --git a/modules/php.eval.inc b/modules/php.eval.inc index 9e70546..ac35cf3 100644 --- a/modules/php.eval.inc +++ b/modules/php.eval.inc @@ -108,7 +108,7 @@ function rules_execute_php_eval($code, $settings, $state, $element) { } /** - * Evalutes the given PHP code, with the given variables defined. + * Evaluates the given PHP code, with the given variables defined. * * @param $code * The PHP code to run, with @@ -130,7 +130,7 @@ function rules_php_eval($code, $arguments = array()) { } /** - * Evalutes the given PHP code, with the given variables defined. This is like + * Evaluates the given PHP code, with the given variables defined. This is like * rules_php_eval() but does return the returned data from the PHP code. * * @param $code diff --git a/modules/rules_core.eval.inc b/modules/rules_core.eval.inc index 2738c9f..55fba1a 100644 --- a/modules/rules_core.eval.inc +++ b/modules/rules_core.eval.inc @@ -46,7 +46,7 @@ function rules_element_invoke_component($arguments, RulesPlugin $element) { $state->mergeSaveVariables($new_state, $component, $element->settings); $state->unblock($component); - // Cleanup the state, what saves not mergable variables now. + // Cleanup the state, what saves not mergeable variables now. $new_state->cleanup(); rules_log('Finished evaluation of @plugin %label.', $replacements, RulesLog::INFO, $component, FALSE); return $return; @@ -231,7 +231,7 @@ class RulesTaxonomyVocabularyWrapper extends EntityDrupalWrapper { } /** - * Overriden to permit machine names as values. + * Overridden to permit machine names as values. */ public function validate($value) { if (isset($value) && is_string($value)) { diff --git a/modules/system.eval.inc b/modules/system.eval.inc index 0de887c..808ff22 100644 --- a/modules/system.eval.inc +++ b/modules/system.eval.inc @@ -43,7 +43,7 @@ function rules_action_drupal_goto($url, $force = FALSE, $destination = FALSE) { unset($_GET['destination']); } // We don't invoke drupal_goto() right now, as this would end the the current - // page execution unpredictly for modules. So we'll take over drupal_goto() + // page execution unpredictably for modules. So we'll take over drupal_goto() // calls from somewhere else via hook_drupal_goto_alter() and make sure // a drupal_goto() is invoked before the page is output with // rules_page_build(). @@ -125,7 +125,7 @@ function rules_action_mail_to_users_of_role($roles, $subject, $message, $from = $message = drupal_mail('rules', $key, $row->mail, language_default(), $params, $from); // If $message['result'] is FALSE, then it's likely that email sending is // failing at the moment, and we should just abort sending any more. If - // however, $mesage['result'] is NULL, then it's likely that a module has + // however, $message['result'] is NULL, then it's likely that a module has // aborted sending this particular email to this particular user, and we // should just keep on sending emails to the other users. // For more information on the result value, see drupal_mail(). diff --git a/rules.api.php b/rules.api.php index cabe313..493c512 100644 --- a/rules.api.php +++ b/rules.api.php @@ -176,7 +176,7 @@ function hook_rules_action_info() { * - label: The label of the category. Start capitalized. Required. * - weight: (optional) A weight for sorting the category. Defaults to 0. * - equals group: (optional) For BC, categories may be defined that equal - * a previsouly used 'group'. + * a previously used 'group'. * - icon: (optional) The file path of an icon to use, relative to the module * or specified icon path. The icon should be a transparent SVG containing * no colors (only #fff). See https://drupal.org/node/2090265 for @@ -260,9 +260,9 @@ function hook_rules_directory() { * hook_rules_action_info() as well as an array containing the action's * configuration settings. * @return - * The action may return an array containg parameter or provided variables + * The action may return an array containing parameter or provided variables * with their names as key. This is used update the value of a parameter or to - * provdide the value for a provided variable. + * provide the value for a provided variable. * Apart from that any parameters which have the key 'save' set to TRUE will * be remembered to be saved by rules unless the action returns FALSE. * Conditions have to return a boolean value in any case. @@ -446,7 +446,7 @@ function hook_rules_event_info() { * makes use of the class for wrapping the data of the given type. However * note that if data is already wrapped when it is passed to Rules, the * existing wrappers will be kept. - * For modules implementing identifiable data types being non-entites the + * For modules implementing identifiable data types being non-entities the * class RulesIdentifiableDataWrapper is provided, which can be used as base * for a custom wrapper class. See RulesIdentifiableDataWrapper for details. * - property info: (optional) May be used for non-entity data structures to @@ -996,7 +996,7 @@ function hook_rules_action_base_upgrade_map_name($element) { * care of upgrading the configuration of all known parameters, which only works * if the parameter name has not changed. * If something changed, this callback can be used to properly apply the - * configruation of the Drupal 6 action ($element) to the Drupal 7 version + * configuration of the Drupal 6 action ($element) to the Drupal 7 version * ($target). * * This is no real hook, but a callback that is invoked for each Drupal 6 diff --git a/rules.features.inc b/rules.features.inc index d34c8d6..06355ed 100644 --- a/rules.features.inc +++ b/rules.features.inc @@ -35,7 +35,7 @@ class RulesFeaturesController extends EntityDefaultFeaturesController { $iterator = new RecursiveIteratorIterator($rules_config, RecursiveIteratorIterator::SELF_FIRST); foreach ($iterator as $element) { if ($element->facesAs('RulesPluginFeaturesIntegrationInterace')) { - // Directly use __call() so we cann pass $export by reference. + // Directly use __call() so we can pass $export by reference. $element->__call('features_export', array(&$export, &$pipe, $module_name)); } } diff --git a/rules.module b/rules.module index e3b65cd..13c0294 100644 --- a/rules.module +++ b/rules.module @@ -102,7 +102,7 @@ function rules_condition($name, $settings = array()) { * * @param $variables * The array of variables to setup in the evaluation state, making them - * available for the configuraion elements. Values for the variables need to + * available for the configuration elements. Values for the variables need to * be passed as argument when the rule is executed. Only Rule instances with * no variables can be embedded in other configurations, e.g. rule sets. * The array has to be keyed by variable name and contain a sub-array for each @@ -162,7 +162,7 @@ function rules_and($variables = NULL) { * The loop settings, containing * 'list:select': The data selector for the list to loop over. * 'item:var': Optionally a name for the list item variable. - * 'item:label': Optionally a lebel for the list item variable. + * 'item:label': Optionally a label for the list item variable. * @param $variables * An optional array as for rule(). * @return RulesLoop @@ -247,7 +247,7 @@ function rules_log($msg, $args = array(), $priority = RulesLog::INFO, RulesPlugi /** * Fetches module definitions for the given hook name. * - * Used for collecting events, rules, actions and condtions from other modules. + * Used for collecting events, rules, actions and condition from other modules. * * @param $hook * The hook of the definitions to get from invoking hook_rules_{$hook}. @@ -931,7 +931,7 @@ function rules_config_delete(array $ids) { */ function rules_config_update_dirty_flag($rules_config, $update = TRUE) { // Keep a log of already check configurations to avoid repetitive checks on - // oftent used components. + // often used components. // @see rules_element_invoke_component_validate() $checked = &drupal_static(__FUNCTION__, array()); if (!empty($checked[$rules_config->name])) { diff --git a/rules_i18n/rules_i18n.i18n.inc b/rules_i18n/rules_i18n.i18n.inc index 003540d..f97ec16 100644 --- a/rules_i18n/rules_i18n.i18n.inc +++ b/rules_i18n/rules_i18n.i18n.inc @@ -11,7 +11,7 @@ class RulesI18nStringController extends EntityDefaultI18nStringController { /** - * Overriden to customize i18n object info. + * Overridden to customize i18n object info. * * @see EntityDefaultI18nStringController::hook_object_info() */ @@ -22,7 +22,7 @@ class RulesI18nStringController extends EntityDefaultI18nStringController { } /** - * Overriden to customize the used menu wildcard. + * Overridden to customize the used menu wildcard. */ protected function menuWildcard() { return '%rules_config'; diff --git a/rules_i18n/rules_i18n.test b/rules_i18n/rules_i18n.test index 1cb7a0d..8f718af 100644 --- a/rules_i18n/rules_i18n.test +++ b/rules_i18n/rules_i18n.test @@ -139,7 +139,7 @@ class RulesI18nTestCase extends DrupalWebTestCase { $messages = drupal_get_messages(); $this->assertEqual($messages['status'][0], 'text-de', 'Text has been successfully translated.'); - // Enable the PHP module and make sure PHP in translations is not evaluted. + // Enable the PHP module and make sure PHP in translations is not evaluated. module_enable(array('php')); i18n_string_textgroup('rules')->update_translation("rules_config:{$set->name}:$id:text", 'de', 'text '); diff --git a/rules_scheduler/rules_scheduler.admin.inc b/rules_scheduler/rules_scheduler.admin.inc index 2956a47..cb5f399 100644 --- a/rules_scheduler/rules_scheduler.admin.inc +++ b/rules_scheduler/rules_scheduler.admin.inc @@ -116,7 +116,7 @@ function rules_scheduler_schedule_form($form, &$form_state, $rules_config, $base $form_state['component'] = $rules_config->name; $action = rules_action('schedule', array('component' => $rules_config->name)); $action->form($form, $form_state); - // The component should be fixed, so hide the paramter for it. + // The component should be fixed, so hide the parameter for it. $form['parameter']['component']['#access'] = FALSE; $form['submit'] = array( '#type' => 'submit', diff --git a/rules_scheduler/rules_scheduler.test b/rules_scheduler/rules_scheduler.test index 957ce0c..897fb23 100644 --- a/rules_scheduler/rules_scheduler.test +++ b/rules_scheduler/rules_scheduler.test @@ -59,7 +59,7 @@ class RulesSchedulerTestCase extends DrupalWebTestCase { } /** - * Make sure recurion prevention is working fine for scheduled rule sets. + * Make sure recursion prevention is working fine for scheduled rule sets. */ function testRecursionPrevention() { $set = rules_rule_set(array( diff --git a/tests/rules.test b/tests/rules.test index 3b034e8..d720fcc 100644 --- a/tests/rules.test +++ b/tests/rules.test @@ -168,7 +168,7 @@ class RulesTestCase extends DrupalWebTestCase { $action2->executeByArgs(array('node' => $node)); $this->assertEqual($node->status, 1, 'Action executed correctly'); - // Test calling an extended + overriden method. + // Test calling an extended + overridden method. $this->assertEqual($action2->help(), 'custom', 'Using custom help callback.'); // Inspect the cache @@ -388,7 +388,7 @@ class RulesTestCase extends DrupalWebTestCase { user_role_change_permissions($this->normal_role, array('use Rules component rules_test_roles' => TRUE)); $this->assertTrue(rules_action('component_rules_test_roles')->access(), 'Authenticated user with the correct role can use the rule component.'); - // Reset global user to anonyous. + // Reset global user to anonymous. $user = user_load(0); $this->assertFalse(rules_action('component_rules_test_roles')->access(), 'Anonymous user can\'t use the rule component.'); } @@ -1221,7 +1221,7 @@ class RulesTriggerTestCase extends DrupalWebTestCase { /** * Ensure the recursion prevention still allows to let the rule trigger again * during evaluation of the same event set, if the event isn't caused by the - * rule itself - thus we won't run in an infinte loop. + * rule itself - thus we won't run in an infinite loop. */ function testRecursionOnDifferentArguments() { // Create rule1 - which might recurse. @@ -1396,7 +1396,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase { $node = $this->drupalCreateNode(array('title' => 'foo')); $rule->execute($node); - $this->assertEqual($node->title, 'bar', "Data comparision using IN operation evaluates to TRUE."); + $this->assertEqual($node->title, 'bar', "Data comparison using IN operation evaluates to TRUE."); // Test Condition: Data is empty. @@ -1468,7 +1468,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase { $set->action('data_convert', array('type' => 'integer', 'value:select' => 'source', 'rounding_behavior' => 'down')); $set->action('data_set', array('data:select' => 'result', 'value:select' => 'conversion_result')); list($result) = $set->execute('9.6'); - $this->assertEqual($result, 9, 'Converted decimal to integer using roundin behavio down.'); + $this->assertEqual($result, 9, 'Converted decimal to integer using rounding behavior down.'); $set = rules_action_set(array( 'result' => array('type' => 'integer', 'parameter' => FALSE), @@ -1510,7 +1510,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase { ->execute(entity_metadata_wrapper('node', $article), 'field_tags'); $this->assertTrue($result); - // Test entiy_is_of_bundle condition. + // Test entity_is_of_bundle condition. $result = rules_condition('entity_is_of_bundle', array( 'type' => 'node', 'bundle' => array('article'), @@ -1983,7 +1983,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase { // custom role and a user for it. $user = $this->drupalCreateUser(array('administer nodes')); $roles = $user->roles; - // Remove the authenticate role so we only use the new role created by + // Remove the authenticated role so we only use the new role created by // drupalCreateUser(). unset($roles[DRUPAL_AUTHENTICATED_RID]); rules_action('mail_to_users_of_role', $settings + array('roles' => array_keys($roles)))->execute(); diff --git a/ui/rules.autocomplete.js b/ui/rules.autocomplete.js index 09ce1c5..a6ac993 100644 --- a/ui/rules.autocomplete.js +++ b/ui/rules.autocomplete.js @@ -81,7 +81,7 @@ Drupal.rules = Drupal.rules || {}; this.jqObject.bind("autocompleteselect", function(event, ui) { // If a group was selected then set the groupSelected to true for the - // overriden close function from jquery autocomplete. + // overridden close function from jquery autocomplete. if (ui.item.value.substring(ui.item.value.length - 1, ui.item.value.length) == ":") { instance.groupSelected = true; } @@ -180,7 +180,7 @@ Drupal.rules = Drupal.rules || {}; }; /** - * Toogle the autcomplete window. + * Toggle the autocomplete window. */ Drupal.rules.autocomplete.prototype.toggle = function() { if (this.jqObject.autocomplete("widget").is(":visible")) { diff --git a/ui/rules.ui.css b/ui/rules.ui.css index b567051..5c90100 100644 --- a/ui/rules.ui.css +++ b/ui/rules.ui.css @@ -86,7 +86,7 @@ ul.rules-operations-add li { position: relative; cursor: pointer; - /* The span element with the icon which opens the log, has a whitepsace. + /* The span element with the icon which opens the log, has a whitespace. Since we don't want the user to mark this white space, we prevent this using the this code.*/ -moz-user-select: -moz-none; diff --git a/ui/ui.controller.inc b/ui/ui.controller.inc index e502b0d..99269d5 100644 --- a/ui/ui.controller.inc +++ b/ui/ui.controller.inc @@ -35,8 +35,8 @@ class RulesUIController { ); $items[$base_path . '/manage/%rules_config/add/%rules_element'] = array( // Adding another part to the path would hit the menu path-part-limit - // for base paths like admin/config/workflow/rules. Therefor we have to - // use this fugly way for setting the title. + // for base paths like admin/config/workflow/rules. Therefore we have to + // use this ugly way for setting the title. 'title callback' => 'rules_menu_add_element_title', // Wrap the integer in an array, so it is passed as is. 'title arguments' => array(array($base_count + 4)), @@ -157,8 +157,8 @@ class RulesUIController { } /** - * Generates the render array for a overview configuration table for arbitrary - * rule configs that match the given conditions. + * Generates the render array for an overview configuration table for + * arbitrary rule configs that match the given conditions. * * Note: The generated overview table contains multiple links for editing the * rule configurations. For the links to properly work use diff --git a/ui/ui.core.inc b/ui/ui.core.inc index a51c6af..063d198 100644 --- a/ui/ui.core.inc +++ b/ui/ui.core.inc @@ -257,7 +257,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface { ); } if (!empty($form['provides'])) { - $help = '
' . t('Adjust the names and labels of provided variables, but note that renaming of already utilizied variables invalidates the existing uses.') . '
'; + $help = '
' . t('Adjust the names and labels of provided variables, but note that renaming of already utilized variables invalidates the existing uses.') . '
'; $form['provides'] += array( '#tree' => TRUE, '#prefix' => '

' . t('Provided variables') . '

' . $help, @@ -457,7 +457,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface { $description = t('The variables used by the component. They can not be edited for configurations that are provided in code.'); } else { - $description = t('Variables are normally input parameters for the component – data that should be available for the component to act on. Additionaly, action components may provide variables back to the caller. Each variable must have a specified data type, a label and a unique machine readable name containing only lowercase alphanumeric characters and underscores. See the online documentation for more information about variables.', + $description = t('Variables are normally input parameters for the component – data that should be available for the component to act on. Additionally, action components may provide variables back to the caller. Each variable must have a specified data type, a label and a unique machine readable name containing only lowercase alphanumeric characters and underscores. See the online documentation for more information about variables.', array('@url' => rules_external_help('variables')) ); } @@ -669,7 +669,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface { * Returns the name of class for the given data type. * * @param $data_type - * The name of the data typ + * The name of the data type * @param $parameter_info * (optional) An array of info about the to be configured parameter. If * given, this array is complemented with data type defaults also. @@ -945,7 +945,7 @@ class RulesContainerPluginUI extends RulesPluginUI { ); $form['elements']['#attributes']['class'][] = 'rules-container-plugin'; - // Recurse over all element childrens or use the provided iterator. + // Recurse over all element children or use the provided iterator. $iterator = isset($iterator) ? $iterator : $this->element->elements(); $root_depth = $this->element->depth(); foreach ($iterator as $key => $child) { @@ -965,7 +965,7 @@ class RulesContainerPluginUI extends RulesPluginUI { ); $form['elements'][$id]['parent_id'] = array( '#type' => 'hidden', - // If another iterator is passed in, the childs parent may not equal + // If another iterator is passed in, the child parent may not equal // the current element. Thus ask the child for its parent. '#default_value' => $child->parentElement()->elementId(), ); @@ -1219,7 +1219,7 @@ class RulesUICategory { $ungrouped = array(); $data = $items ? $items : rules_fetch_data($item_type . '_info'); foreach ($data as $name => $info) { - // Verfiy the current user has access to use it. + // Verify the current user has access to use it. if (!user_access('bypass rules access') && !empty($info['access callback']) && !call_user_func($info['access callback'], $item_type, $name)) { continue; } diff --git a/ui/ui.data.inc b/ui/ui.data.inc index 0f1fde9..8722946 100644 --- a/ui/ui.data.inc +++ b/ui/ui.data.inc @@ -369,8 +369,8 @@ class RulesDataUIDate extends RulesDataUIText { array('%format' => gmdate('Y-m-d H:i:s', time() + 86400), '!strtotime' => l('strtotime()', 'http://php.net/strtotime'))); - //TODO: Leverage the jquery datepicker+timepicker once a module providing - //the timpeicker is available. + // TODO: Leverage the jquery datepicker+timepicker once a module providing + // The timepicker is available. return $form; } diff --git a/ui/ui.forms.inc b/ui/ui.forms.inc index b01e0f5..e20e24b 100644 --- a/ui/ui.forms.inc +++ b/ui/ui.forms.inc @@ -291,7 +291,7 @@ function rules_ui_add_element($form, &$form_state, $rules_config, $plugin_name, /** * Add element submit callback. * Used for "abstract plugins" to create the initial element object with the - * given implemenation name and rebuild the form. + * given implementation name and rebuild the form. */ function rules_ui_add_element_submit($form, &$form_state) { $element = rules_plugin_factory($form_state['plugin'], $form_state['values']['element_name']); @@ -487,7 +487,7 @@ function rules_ui_add_event_apply($form, &$form_state) { } /** - * Form to remove a event from a rule. + * Form to remove an event from a rule. */ function rules_ui_remove_event($form, &$form_state, $rules_config, $event, $base_path) { RulesPluginUI::$basePath = $base_path; @@ -696,7 +696,7 @@ function rules_ui_element_ip_address_validate($element, &$form_state) { /** * FAPI validation of a date element. Makes sure the specified date format is - * correct and converts date values specifiy a fixed (= non relative) date to + * correct and converts date values specify a fixed (= non relative) date to * a timestamp. Relative dates are handled by the date input evaluator. */ function rules_ui_element_date_validate($element, &$form_state) {