Created
February 23, 2012 22:49
-
-
Save greggles/1895535 to your computer and use it in GitHub Desktop.
cyclical complexity of 2 no-op
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implement hook_field_attach_submit(). | |
*/ | |
function example_authentication_field_attach_submit($entity_type, $entity, $form, &$form_state) { | |
// drupal_set_message('THE ENTITY TYPE IS:'.$entity_type); | |
if ($entity_type == 'user') { | |
// drupal_set_message('THE CURRENT PASSWORD IS: '.$form['#user']->current_pass); | |
// drupal_set_message('THE NEW PASSWORD IS: '.$form['#user']->pass); | |
// $entity->current_pass = strtolower ($entity->current_pass); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment