/**
  * enable configuration box
  * @param $file
  * @param $visible
  */
 public function enable_config_page($file, $visible = true)
 {
     $this->option('enable_config_page', true);
     $this->option('visible_config_page', $visible);
     #$configs = HW_Config_Module_Section::add_config('modules_configs');
     #if(empty($configs)) $configs = array();
     $path = $this->option('module_path');
     //load module config class
     if (!file_exists($file)) {
         $file = $path . '/' . preg_replace('#\\.php$#', '', trim($file)) . '.php';
     }
     if (file_exists($file) && !is_dir($file)) {
         include_once $file;
         HW_Config_Module_Section::add_config(realpath($file), $this);
     }
 }