You are here

function lockr_admin_register_form in Lockr 7

Same name and namespace in other branches
  1. 7.3 lockr.admin.inc \lockr_admin_register_form()
  2. 7.2 include/register_form.inc \lockr_admin_register_form()

Returns the register form.

1 call to lockr_admin_register_form()
lockr_admin_form in ./lockr.admin.inc
Form constructor for Lockr registration form.

File

include/register_form.inc, line 14
Form handlers for registration.

Code

function lockr_admin_register_form(&$form_state) {
  $form = array();
  $form['email'] = array(
    '#type' => 'textfield',
    '#title' => t('Email address'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Sign up'),
    '#validate' => array(
      'lockr_admin_register_validate',
    ),
    '#submit' => array(
      'lockr_admin_register_submit',
    ),
  );
  $next = isset($_GET['next']) ? $_GET['next'] : '/admin/config/system/keys';
  $form_state['storage']['redirect'] = $next;
  return $form;
}