function lockr_admin_register_form in Lockr 7.2
Same name and namespace in other branches
- 7.3 lockr.admin.inc \lockr_admin_register_form()
- 7 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['instructions'] = array(
'#markup' => t('Please enter an email below to continue installation of Lockr and securing your API and encryption keys. If the email you enter does not have a Lockr account associated with it, we will create one for you and send you a follow on email with account details.'),
);
$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;
}