public function action_admin_list()
 {
     // fetch modulenames as numeric indexed array
     $modules = Clansuite_ModuleInfoController::getModuleNames(false, true);
     $themes = Clansuite_Theme::getThemeDirectories();
     // create a new form
     $form = new Clansuite_Form('module_select_dropdown_form', 'post', '/templatemanager/admin/edit');
     $form->setLegend(_('Select Module or Theme to edit'));
     // select dropdown for modules
     $form->addElement('select')->setName('select_form[module]')->setLabel(_('Module'))->setOptions($modules)->withValuesAsKeys();
     // select dropdown for themes
     $form->addElement('select')->setName('select_form[theme]')->setLabel(_('Theme'))->setOptions($themes)->withValuesAsKeys();
     // add the buttonbar
     $form->addElement('buttonbar')->setCancelButtonURL('index.php?mod=templatemanager&sub=admin');
     // assign the html of the form to the view
     $this->getView()->assign('module_select_dropdown_form', $form->render());
     $this->display();
 }
 public function action_admin_modulemenueditor()
 {
     $modulenames = Clansuite_ModuleInfoController::getModuleNames(false, true);
     // create a new form
     $form = new Clansuite_Form('module_select_dropdown_form', 'post', '/menu/admin/modulemenu_edit');
     // select dropdown for modules
     $form->addElement('select')->setName('menu_select_form[modulename]')->setLabel(_('Module'))->setOptions($modulenames);
     // add the buttonbar
     $form->addElement('buttonbar')->getButton('cancelbutton')->setCancelURL('index.php?mod=menu&sub=admin');
     // assign the html of the form to the view
     $this->getView()->assign('module_select_dropdown_form', $form->render());
     $this->display();
 }
 /**
  * Scans all modules for language strings
  *
  * @uses scanModule()
  * @uses Clansuite_ModuleInfoController::getModuleNames()
  */
 public static function scanAllModules()
 {
     $module_names = Clansuite_ModuleInfoController::getModuleNames();
     foreach ($module_names as $module) {
         foreach ($module as $name => $path) {
             self::scanModule($name);
         }
     }
 }