anonymous_login.admin.inc in Anonymous login 7
File
anonymous_login.admin.inc
View source
<?php
function anonymous_login_admin_settings($form, &$form_state) {
$form['anonymous_login_paths'] = array(
'#type' => 'textarea',
'#title' => t('Page paths'),
'#default_value' => variable_get('anonymous_login_paths', NULL),
'#description' => t('Enter a list of page paths that will force anonymous users to login before viewing. After logging in, they will be redirected back to the requested page. Enter each path on a different line. Wildcards (*) can be used. Prefix a path with ~ (tilde) to exclude it from being redirected.'),
);
$form['anonymous_login_page_path'] = array(
'#type' => 'textfield',
'#title' => t('Login page path'),
'#default_value' => variable_get('anonymous_login_page_path', 'user/login'),
'#required' => TRUE,
'#description' => t('Enter the user login page path of your site.'),
);
$form['anonymous_login_message'] = array(
'#type' => 'textarea',
'#title' => t('Login message'),
'#default_value' => variable_get('anonymous_login_message', NULL),
'#description' => t('Optionally provide a message that will be shown to users when they are redirected to login.'),
);
return system_settings_form($form);
}