Skip to content

Instantly share code, notes, and snippets.

diff --git a/composer.json b/composer.json
index 0097567..bcb6a36 100644
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,8 @@
"drupal/password_policy": {
"#2862906-2: Enforce password policy for user 1": "https://www.drupal.org/files/issues/password_policy-2862906-2.patch",
"#2771129-49: Unknown fields while importing configuration on site without password_policy activated": "https://www.drupal.org/files/issues/password-policy-config-import-field-error-2771129-49-D8.patch",
- "#2903970-2: Create user accounts skips password policies": "https://www.drupal.org/files/issues/password_policy-2903970-2.patch"
+ "#2903970-2: Create user accounts skips password policies": "https://www.drupal.org/files/issues/password_policy-2903970-2.patch",
diff --git a/password_policy.install b/password_policy.install
index f32e5e5..2283c17 100644
--- a/password_policy.install
+++ b/password_policy.install
@@ -13,19 +13,18 @@ function password_policy_install() {
return;
}
- // Set user password reset timestamp to now.
- $timestamp = gmdate(DATETIME_DATETIME_STORAGE_FORMAT, REQUEST_TIME);
@kmoll
kmoll / keybase.md
Created April 6, 2017 19:43
keybase.md

Keybase proof

I hereby claim:

  • I am kmoll on github.
  • I am kmoll (https://keybase.io/kmoll) on keybase.
  • I have a public key ASD04g0Y5HciZybTiz7Xu9tsFe29qRvNRdcvoaliPDoqyAo

To claim this, I am signing this object:

<?php
/**
* Implements hook_element_info().
*
* The managed file element may be used anywhere in Drupal.
*/
function obfuscate_textfield_element_info() {
$file_path = drupal_get_path('module', 'obfuscate_textfield');
$types['obfuscate_textfield'] = array(
<?php
/**
* Import translations
*/
function hook_update_7001() {
my_module_import_po_file('pt-pt');
}
function my_module_import_po_file($language) {