Подскажите как добавить новый тип поля пытался сделать хук, но не получилось.
в template.php темы пишу
<?php
function Tema_webform_component_info() {
$component_info = array(
'date_date' => array(
'label' => t('Date'),
'description' => t('Presents month, day, and year fields.'),
'features' => array(
'conditional' => FALSE,
),
'file' => 'components/date.inc',
),
);
return $component_info;
}?>
Комментарии
Так это не в теме, а в своем модуле надо делать.
http://jamestombs.co.uk/2012-09-24/create-new-webform-element-drupal-7