function fbconnect_register_form in Facebook Connect 5
This form is display when we register a new user.
1 string reference to 'fbconnect_register_form'
- fbconnect_register_page in ./
fbconnect.module - Menu callback. Called when user perform facebook registration
File
- ./
fbconnect.module, line 230 - This module allows site visitors to connect and register with facebook account
Code
function fbconnect_register_form() {
$fbuid = fbconnect_get_fbuid();
$sitename = variable_get('site_name', t('this website'));
$form['reg'] = array(
'#type' => 'fieldset',
'#collapsible' => FALSE,
);
$form['reg']['username'] = array(
'#type' => 'textfield',
'#title' => t('Username'),
'#required' => TRUE,
'#default_value' => fbconnect_get_fbname($fbuid),
'#description' => t('Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.'),
);
$form['reg']['mail'] = array(
'#type' => 'textfield',
'#title' => t('E-mail address'),
'#required' => TRUE,
'#description' => t('A valid e-mail address. All e-mails from the system will be sent to this address.'),
);
$form['reg']['visibility'] = array(
'#type' => 'checkbox',
'#title' => t('Let my Facebook friends see me on @sitename', array(
'@sitename' => $sitename,
)),
'#description' => t('My Facebook friends will be able to see that I own an account on @sitename.', array(
'@sitename' => $sitename,
)),
'#default_value' => 1,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}