You are here

protected function BotchaFormAbstract::createAdminLinksFieldset in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 7.2 controller/botcha_form.controller.inc \BotchaFormAbstract::createAdminLinksFieldset()
3 calls to BotchaFormAbstract::createAdminLinksFieldset()
BotchaForm::createAdminLinksFieldset in controller/botcha_form.controller.inc
BotchaFormAbstract::addAdminLinks in controller/botcha_form.controller.inc
BotchaFormNone::createAdminLinksFieldset in controller/botcha_form.controller.inc
2 methods override BotchaFormAbstract::createAdminLinksFieldset()
BotchaForm::createAdminLinksFieldset in controller/botcha_form.controller.inc
BotchaFormNone::createAdminLinksFieldset in controller/botcha_form.controller.inc

File

controller/botcha_form.controller.inc, line 114
Controller layer of the BotchaForm objects.

Class

BotchaFormAbstract
Special class to abstract operations with form_id. Casual usage is getting all recipe books by form_id. It could be done by adding one more method to Botcha (such as "getRecipebookByFormId") but in long-time perspective it is…

Code

protected function createAdminLinksFieldset($form_id) {

  // For administrators: show BOTCHA info and offer link to configure it.
  return array(
    '#type' => 'fieldset',
    '#title' => t('BOTCHA'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    // @todo Abstract it.

    //'#attributes' => array('class' => array('botcha-admin-links')),
    '#attributes' => array(
      'class' => 'botcha-admin-links',
    ),
  );
}