@@ -540,7 +540,7 @@ |
||
540 | 540 | * @param $file |
541 | 541 | * A file object. |
542 | 542 | * @return |
543 | - * The URL of the icon image file, or FALSE if no icon could be found. |
|
543 | + string|false The URL of the icon image file, or FALSE if no icon could be found. |
|
544 | 544 | */ |
545 | 545 | function filefield_icon_url($file) { |
546 | 546 | module_load_include('inc', 'filefield', 'filefield.theme'); |
@@ -151,7 +151,7 @@ |
||
151 | 151 | * @param $account |
152 | 152 | * The user account object to calculate the file path for. |
153 | 153 | * @return |
154 | - * The files directory path, with any tokens replaced. |
|
154 | + string The files directory path, with any tokens replaced. |
|
155 | 155 | */ |
156 | 156 | function filefield_widget_file_path($field, $account = NULL) { |
157 | 157 | $account = isset($account) ? $account : $GLOBALS['user']; |
@@ -36,6 +36,9 @@ |
||
36 | 36 | // return true if the passwd hash (old format) |
37 | 37 | // matches the user's passwd hash (possibly new format) |
38 | 38 | // |
39 | +/** |
|
40 | + * @param string $passwd_hash |
|
41 | + */ |
|
39 | 42 | function check_passwd_hash($user, $passwd_hash) { |
40 | 43 | if (password_verify($passwd_hash, $user->passwd_hash)) { |
41 | 44 | // on valid login, rehash password to upgrade hash overtime |