You are here

function anonymous_publishing_lr_form in Anonymous Publishing 7

Define a form.

1 string reference to 'anonymous_publishing_lr_form'
anonymous_publishing_lr_menu in modules/lr/anonymous_publishing_lr.module
Implements hook_menu().

File

modules/lr/anonymous_publishing_lr.module, line 41
Hooks for the Anonymous Publishing LR module.

Code

function anonymous_publishing_lr_form() {
  $form['anonymous_publishing_lr_options'] = array(
    '#type' => 'radios',
    '#title' => t("What do you want to do with the contents you've previously published anonymously?"),
    '#default_value' => 'leave',
    '#options' => array(
      'leave' => t('Leave it as it is.'),
      'claim' => t('Claim it.'),
    ),
    '#description' => t("If you check “Claim it” and press the  “Submit”-button, you will become the owner and author of the content you've posted previously that is associated with your e-mail address."),
  );
  $form[' submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}