function luxe_admin_settings in Luxe 7
1 string reference to 'luxe_admin_settings'
- luxe_menu in ./
luxe.module
File
- ./
luxe.module, line 124
Code
function luxe_admin_settings() {
$form['luxe_login'] = array(
'#type' => 'fieldset',
'#title' => t('Login page settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['luxe_login']['luxe_login']['luxe_login_title'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Login Form Title'),
'#default_value' => variable_get('luxe_login_title', 'Login'),
);
$form['luxe_login']['luxe_recover_text'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Text for the login form\'s "recover password" link.'),
'#default_value' => variable_get('luxe_recover_text', 'Forgot your password?'),
);
$form['luxe_login']['luxe_login_register_title'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Title for login form registration block'),
'#default_value' => variable_get('luxe_login_register_title', 'Don\'t have an Account?'),
);
$form['luxe_login']['luxe_login_register_intro'] = array(
'#type' => 'textarea',
'#multiple' => true,
'#title' => t('Registration block text for login form'),
'#default_value' => variable_get('luxe_login_register_intro', ''),
);
$form['luxe_login']['luxe_login_register_form'] = array(
'#type' => 'checkbox',
'#return_value' => 1,
'#default_value' => variable_get('luxe_login_register_form', 0),
'#title' => t('Show full registration form on login page'),
'#description' => t("Instead of just a link to the registration page, embed the whole registration form in the login page."),
);
$form['luxe_register'] = array(
'#type' => 'fieldset',
'#title' => t('Registration page settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['luxe_register']['luxe_register_title'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Registration Form Title'),
'#default_value' => variable_get('luxe_register_title', 'Sign up'),
);
$form['luxe_register']['luxe_register_username_description'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Registration Form Username Field Description'),
'#description' => t('The help text that appears under the username field in the registration form. Leave blank to use Drupal\'s build-in value.'),
'#default_value' => variable_get('luxe_register_username_description', ''),
);
$form['luxe_register']['luxe_register_mail_description'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Registration Form Email Field Description'),
'#description' => t('The help text that appears under the email field in the registration form. Leave blank to use Drupal\'s build-in value.'),
'#default_value' => variable_get('luxe_register_mail_description', ''),
);
$form['luxe_recover_title'] = array(
'#type' => 'textfield',
'#multiple' => true,
'#title' => t('Password Recovery Form Title'),
'#default_value' => variable_get('luxe_recover_title', 'Forgot your password?'),
);
return system_settings_form($form);
}