/** * Load the module. * * @return boolean * @since 1.1 */ public function load($force = false) { if (!$force && $this->get_settings('once') && $this->is_loaded()) { return true; } if ($path = Momtaz_Modules::locate_module($this->get_path())) { // Load the module main file. momtaz_load_template($path, false); // Set the module loader status. $this->statuses['loaded'] = true; return true; } return false; }