You are here

function spamicide_admin_adform_form in Spamicide 7

Same name and namespace in other branches
  1. 6 spamicide.module \spamicide_admin_adform_form()

Form for adding spamicide functionality to an existing form

Parameters

$spamicide_form_id:

Return value

$form

1 string reference to 'spamicide_admin_adform_form'
spamicide_menu in ./spamicide.module
Implements hook_menu().

File

./spamicide.module, line 263
This module provides yet another tool to eliminate spam.

Code

function spamicide_admin_adform_form($form, &$form_state, $spamicide_form_id) {

  // use given spamicide form_id
  $form['spamicide_form_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Form ID'),
    '#description' => t('The Drupal form_id of the form to add the Spamicide to.'),
    '#value' => $spamicide_form_id,
    '#disabled' => TRUE,
  );

  // will have to set default for this is a form/variable
  $form['spamicide_form_field'] = array(
    '#type' => 'textfield',
    '#title' => t('Form field'),
    '#default_value' => 'feed_me',
    '#description' => t('The name you want for the field. Use only letters, numbers, and the underscore character(_).'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}