You are here

function webform_elements in Webform 6.3

Implements hook_elements().

File

./webform.module, line 665

Code

function webform_elements() {

  // 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;
}