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);
}
}
}