function elfinder_ffsel_hooks in elFinder file manager 8.2
Same name and namespace in other branches
- 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 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 9
Code
function elfinder_ffsel_hooks($method, &$params) {
$return = array();
$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);
}
elseif (isset($result)) {
$return[] = $result;
}
}
return $return;
}