You are here

protected function BotchaFormNone::createAdminLinksFieldset in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 7.2 controller/botcha_form.controller.inc \BotchaFormNone::createAdminLinksFieldset()

Overrides BotchaFormAbstract::createAdminLinksFieldset

File

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

Class

BotchaFormNone
Dummy class, created for data consistency and for interface unifying. When there is no form, this class is used as a handler. It has no logic at all - by design.

Code

protected function createAdminLinksFieldset($form_id) {
  $botcha_element = parent::createAdminLinksFieldset($form_id);
  $botcha_element['#title'] = t('BOTCHA: no protection enabled');
  $botcha_element['add_botcha'] = array(
    // @todo Abstract it.

    //'#markup' => l(t('Add BOTCHA protection on form'), Botcha::BOTCHA_ADMIN_PATH . "/form/add", array('query' => array_merge(drupal_get_destination(), array('botcha_form_id' => $form_id)), 'html' => TRUE)),
    '#value' => l(t('Add BOTCHA protection on form'), Botcha::BOTCHA_ADMIN_PATH . "/form/add", array(
      'query' => drupal_get_destination() . "&botcha_form_id={$form_id}",
      'html' => TRUE,
    )),
  );
  return $botcha_element;
}