You are here

protected function BotchaFormAbstract::createAdminLinksFieldset in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha_form.controller.inc \BotchaFormAbstract::createAdminLinksFieldset()
2 calls to BotchaFormAbstract::createAdminLinksFieldset()
BotchaForm::createAdminLinksFieldset in controller/botcha_form.controller.inc
BotchaFormAbstract::addAdminLinks in controller/botcha_form.controller.inc
1 method overrides BotchaFormAbstract::createAdminLinksFieldset()
BotchaForm::createAdminLinksFieldset in controller/botcha_form.controller.inc

File

controller/botcha_form.controller.inc, line 111
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',
      ),
    ),
  );
}