function webform_element_info in Webform 7.4
Same name and namespace in other branches
- 7.3 webform.module \webform_element_info()
Implements hook_element_info().
File
- ./
webform.module, line 1050 - 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,
);
$elements['webform_conditional'] = array(
'#input' => TRUE,
'#theme' => 'webform_conditional',
'#default_value' => NULL,
'#process' => array(
'webform_conditional_expand',
),
);
return $elements;
}