コード例 #1
0
/**
 * Load a module.
 *
 * @deprecated
 * @see ModUtil::loadGeneric()
 *
 * @param string  $modname The name of the module.
 * @param string  $type    The type of functions to load.
 * @param boolean $force   Determines to load Module even if module isn't active.
 * @param boolean $api     Whether or not to load an API (or regular) module.
 *
 * @return string|boolean Name of module loaded, or false on failure.
 */
function pnModLoadGeneric($modname, $type = 'user', $force = false, $api = false)
{
    LogUtil::log(__f('Warning! Function %1$s is deprecated. Please use %2$s instead.', array(__FUNCTION__, 'ModUtil::loadGeneric()')), E_USER_DEPRECATED);
    return ModUtil::loadGeneric($modname, $type, $force, $api);
}