Skip to content

Instantly share code, notes, and snippets.

@greggles
Created February 23, 2012 22:49
Show Gist options
  • Save greggles/1895535 to your computer and use it in GitHub Desktop.
Save greggles/1895535 to your computer and use it in GitHub Desktop.
cyclical complexity of 2 no-op
<?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