Stackoverflow 是程式設計師的好幫手 :)
以下範例是放置在一個 Drupal custom module 裡頭:
/**
* Implement hook_field_attach_submit().
*/
function yourModuleName_field_attach_submit($entity_type, $entity, $form, &$form_state) {
if ($entity_type == 'user') {
// handle your $form["#user"]->pass;
debug($form["#user"]->pass);
}
}
Brought to you by

0 Comments:
Post a Comment