function elfinder_ffsel_hooks in elFinder file manager 7
Same name and namespace in other branches
- 8.2 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
- 6.2 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
- 6 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
- 7.3 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
- 7.2 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
1 call to elfinder_ffsel_hooks()
- elfinder_ffsel_filefield_sources_info in modules/
elfinder_ffsel/ elfinder_ffsel.module
File
- modules/
elfinder_ffsel/ elfinder_ffsel.module, line 10
Code
function elfinder_ffsel_hooks($method, &$params) {
$return = array();
//include_once('elfinder.inc');
$source = 'elfinder';
$function = 'filefield_source_' . $source . '_' . $method;
if (function_exists($function)) {
$result = call_user_func_array($function, $params);
if (isset($result) && is_array($result)) {
$return = array_merge_recursive($return, $result);
}
else {
if (isset($result)) {
$return[] = $result;
}
}
}
return $return;
}