You are here

function disclaimer_age_form in Disclaimer 6.2

Same name and namespace in other branches
  1. 6 disclaimer.module \disclaimer_age_form()
  2. 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 180
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;
}