function hacked_get_file_hasher in Hacked! 6.2
Same name and namespace in other branches
- 8.2 hacked.module \hacked_get_file_hasher()
- 7.2 hacked.module \hacked_get_file_hasher()
Return the file hasher that is currently selected by the user.
1 call to hacked_get_file_hasher()
- hackedFileGroup::hackedFileGroup in includes/
hacked_project.inc - Constructor.
File
- ./
hacked.module, line 335 - The Hacked! module, shows which project have been changed since download.
Code
function hacked_get_file_hasher($name = NULL) {
if (is_null($name)) {
$name = variable_get('hacked_selected_file_hasher', HACKED_DEFAULT_FILE_HASHER);
}
$hashers = hacked_get_file_hashers();
$class_name = $hashers[$name]['class'];
return new $class_name();
}