webform_simplenews.module 533 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Implements of hook_webform_component_info().
  4. */
  5. function webform_simplenews_webform_component_info() {
  6. $components = array();
  7. $components['newsletter_email'] = array(
  8. 'label' => t('Newsletter email'),
  9. 'description' => t('Email for newsletter'),
  10. 'features' => array(
  11. 'csv' => TRUE,
  12. 'email' => TRUE,
  13. 'required' => TRUE,
  14. 'conditional' => TRUE,
  15. 'email_address' => TRUE,
  16. 'spam_analysis' => TRUE,
  17. ),
  18. 'file' => 'webform_simplenews.inc',
  19. );
  20. return $components;
  21. }