Typo in Rules Default

Created on 13 November 2018, over 5 years ago
Updated 16 February 2023, over 1 year ago

In user_registrationpassword.rules_defaults.inc, there's a sample rule called "rules_user_registrationpassword_activated_example" which contains a default message "Your account is now activate."

The word "activate" should either be "activated" or "active".


/**
 * @file
 * Rules example reaction rule for the user_registrationpassword module.
 */

/**
 * Implements hook_default_rules_configuration().
 */
function user_registrationpassword_default_rules_configuration() {
  $configs = array();
  $rule = '{ "rules_user_registrationpassword_activated_example" : {
    "LABEL" : "An example rule for the activated user rule.",
    "PLUGIN" : "reaction rule",
    "ACTIVE" : false,
    "OWNER" : "rules",
    "REQUIRES" : [ "rules", "user_registrationpassword" ],
    "ON" : { "user_registrationpassword_activated" : [] },
    "DO" : [ { "drupal_message" : { "message" : "Your account is now activate." } } ]
  }
}';

  $configs['rules_user_registrationpassword_activated_example'] = rules_import($rule);
  return $configs;
}

πŸ› Bug report
Status

Fixed

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Solidmark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024