--- D:/password_change/password_change.install Mon Dec 14 06:38:04 2009 +++ D:/password_change/password_change.install.mod Sat Oct 23 10:31:44 2010 @@ -6,6 +6,15 @@ * Install and uninstall schema and functions for the password_change module. */ +// based on phpass.module +function password_change_install() { + // detect presence of phpass (pass hash method set as 'phpass') + if (module_exists("phpass") && variable_get('user_hash_method', 'phpass') == 'phpass') { + // report error if passwordhash is missing through a phpass.module function + _phpass_is_passwordhash_php_missing(); + } +} + function password_change_uninstall() { variable_del('password_change_all'); }