You are here

function elfinder_ffsel_hooks in elFinder file manager 7

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