protected function _afterInitSetupForm(Am_Form_Setup $form) { if ($this->_configPrefix) { $form->addFieldsPrefix($this->_configPrefix . $this->getId() . '.'); } if ($plugin_readme = $this->getReadme()) { $plugin_readme = str_replace(array('%root_url%', '%root_surl%', '%root_dir%'), array(ROOT_URL, ROOT_SURL, ROOT_DIR), $plugin_readme); $form->addEpilog('<div class="info"><pre>' . $plugin_readme . '</pre></div>'); } if (defined($const = get_class($this) . "::PLUGIN_STATUS") && (constant($const) == self::STATUS_BETA || constant($const) == self::STATUS_DEV)) { $beta = constant($const) == self::STATUS_DEV ? 'ALPHA' : 'BETA'; $form->addProlog("<div class='warning_box'>This plugin is currently in {$beta} testing stage, some features may be unstable. " . "Please test it carefully before use.</div>"); } }