triggerEvent($fnSuffix, array(&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6)); $moduleResult = $this->commonInvoke($numParams, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $fnSuffix, 'joomla'); if (!empty($moduleResult) && is_array($moduleResult)) { if (empty($result)) { $result = $moduleResult; } else { if (is_array($moduleResult)) { $result = array_merge($result, $moduleResult); } } } if (!empty($result)) { // collapse result returned from hooks // CRM-9XXX $finalResult = array(); foreach ($result as $res) { if (!is_array($res)) { $res = array($res); } $finalResult = array_merge($finalResult, $res); } $result = $finalResult; } return $result; } } }