function disclaimer_age_form in Disclaimer 6
Same name and namespace in other branches
- 6.2 disclaimer.module \disclaimer_age_form()
- 7 disclaimer.module \disclaimer_age_form()
function to set age form on disclaimer
Return value
array an array of forms
2 string references to 'disclaimer_age_form'
- disclaimer_admin_settings in ./
disclaimer.admin.inc - _disclaimer_get_content in ./
disclaimer.module - Generate disclaimer content
File
- ./
disclaimer.module, line 262 - Create and show disclaimer for your site. Visotors need js enabled and accept cookie
Code
function disclaimer_age_form() {
$form['disclaimer_age'] = array(
'#type' => 'date',
'#title' => t('Date of Birth'),
'#description' => t('You must be at least @age years old to visit @site.', array(
'@age' => variable_get('disclaimer_age_limit', 18),
'@site' => variable_get('site_name', ''),
)),
);
return $form;
}