You are here

function webform_element_info in Webform 7.3

Same name and namespace in other branches
  1. 7.4 webform.module \webform_element_info()

Implements hook_element_info().

File

./webform.module, line 714
This module provides a simple way to create forms and questionnaires.

Code

function webform_element_info() {

  // A few of our components need to be defined here because Drupal does not
  // provide these components natively. Because this hook fires on every page
  // load (even on non-webform pages), we don't put this in the component .inc
  // files because of the unnecessary loading that it would require.
  $elements['webform_time'] = array(
    '#input' => 'TRUE',
  );
  $elements['webform_grid'] = array(
    '#input' => 'TRUE',
  );
  $elements['webform_email'] = array(
    '#input' => TRUE,
    '#theme' => 'webform_email',
    '#size' => 60,
  );
  $elements['webform_number'] = array(
    '#input' => TRUE,
    '#theme' => 'webform_number',
    '#min' => NULL,
    '#max' => NULL,
    '#step' => NULL,
  );
  return $elements;
}