You are here

public function BotchaFormNone::addAdminLinks in BOTCHA Spam Prevention 6.3

Same name and namespace in other branches
  1. 6.2 controller/botcha_form.controller.inc \BotchaFormNone::addAdminLinks()
  2. 7.2 controller/botcha_form.controller.inc \BotchaFormNone::addAdminLinks()
  3. 7.3 controller/form/botcha.form.controller.inc \BotchaFormNone::addAdminLinks()

Overrides BotchaForm::addAdminLinks

File

controller/form/botcha.form.controller.inc, line 222
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

public function addAdminLinks(&$form) {
  $form_id = $form['form_id']['#value'];

  // Apply only to allowed forms.
  if (!in_array($form_id, array(
    'update_script_selection_form',
    'user_login',
    'user_login_block',
  ))) {
    parent::addAdminLinks($form);
  }
}