/** * Run a module function. * * @deprecated * @see ModUtil::exec() * * @param string $modname The name of the module. * @param string $type The type of function to run. * @param string $func The specific function to run. * @param array $args The arguments to pass to the function. * @param boolean $api Whether or not to execute an API (or regular) function. * * @return mixed. */ function pnModFuncExec($modname, $type = 'user', $func = 'main', $args = array(), $api = false) { LogUtil::log(__f('Warning! Function %1$s is deprecated. Please use %2$s instead.', array(__FUNCTION__, 'ModUtil::exec()')), E_USER_DEPRECATED); return ModUtil::exec($modname, $type, $func, $args); }