You are here

function elfinder_ffsel_hooks in elFinder file manager 8.2

Same name and namespace in other branches
  1. 6.2 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
  2. 6 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
  3. 7.3 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
  4. 7 modules/elfinder_ffsel/elfinder_ffsel.module \elfinder_ffsel_hooks()
  5. 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;
}