MX_Loader::_add_module_paths PHP Method

_add_module_paths() public method

Add a module path loader variables *
public _add_module_paths ( $module = '' )
    public function _add_module_paths($module = '')
    {
        if (empty($module)) {
            return;
        }
        foreach (Modules::$locations as $location => $offset) {
            /* only add a module path if it exists */
            if (is_dir($module_path = $location . $module . '/') && !in_array($module_path, $this->_ci_model_paths)) {
                array_unshift($this->_ci_model_paths, $module_path);
            }
        }
    }