示例#1
0
 /**
  * Method that responds to the user selecting an action on the plugin page
  * @param string $plugin_id String containning the id of the plugin
  * @param string $action The action string suplied via the filter_plugin_config hook
  **/
 public function action_plugin_ui($plugin_id, $action)
 {
     if ($plugin_id == $this->plugin_id()) {
         switch ($action) {
             case _t('Configure'):
                 $ui = new FormUI(strtolower(get_class($this)));
                 $colophontitle = $ui->add('text', 'colophon_title', _t('Enter your Title:'));
                 $colophontext = $ui->add('textarea', 'colophon_text', _t('Enter your Text:'));
                 $ui->on_success(array($this, 'updated_config'));
                 $ui->out();
                 break;
         }
     }
 }