function uptolike_admin_statistic_form_submit in Uptolike share buttons 7
Submit handler for admin setting form.
1 string reference to 'uptolike_admin_statistic_form_submit'
- uptolike_admin_statistic_form in ./
uptolike.admin.inc - Form builder for admin statistic page.
File
- ./
uptolike.admin.inc, line 128 - Code for admin pages of Uptolike module.
Code
function uptolike_admin_statistic_form_submit($form, &$form_state) {
$email = $form_state['values']['uptolike_email'];
if (isset($email) && empty($form_state['values']['uptolike_key'])) {
uptolike_user_registration($email);
drupal_set_message(t('The secret code has been sent to %email. Check your email and enter secret code below.', array(
'%email' => $email,
)));
drupal_set_message(t('If the letter with secret key is not coming, check your Spam folder.'));
}
// Secret key may have spaces at the end.
if (isset($form_state['values']['uptolike_key'])) {
$form_state['values']['uptolike_key'] = trim($form_state['values']['uptolike_key']);
}
}