You are here

function disclaimer_age_form in Disclaimer 7

Same name and namespace in other branches
  1. 6.2 disclaimer.module \disclaimer_age_form()
  2. 6 disclaimer.module \disclaimer_age_form()

Function to set age form on disclaimer.

Return value

array An array of forms.

3 string references to 'disclaimer_age_form'
disclaimer_admin_settings in ./disclaimer.admin.inc
Admin settings form for Disclaimer.
_disclaimer_build_content in ./disclaimer.module
Generate disclaimer content.
_disclaimer_js_settings in ./disclaimer.module
Add needed js settings.

File

./disclaimer.module, line 356
Create and show disclaimer for your site.

Code

function disclaimer_age_form($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;
}