function constant_contact_import in Constant Contact 6
Same name and namespace in other branches
- 5 constant_contact.module \constant_contact_import()
- 6.3 admin.import.inc \constant_contact_import()
- 7.3 admin.import.inc \constant_contact_import()
Implementation of hook_form() import users
1 string reference to 'constant_contact_import'
- constant_contact_menu in ./
constant_contact.module - Implementation of hook_menu().
File
- ./
constant_contact.module, line 386
Code
function constant_contact_import() {
$form = array(
array(
'#value' => '<p>' . t("This will import all your drupal users into your Constant Contact account. It doesn't send confirmation emails, so if you want that, you will need to send a mailing-list email, on the Constant Contact site.") . '</p>',
),
);
$lists = constant_contact_get_lists();
$form['list'] = array(
'#type' => 'select',
'#title' => t('List'),
'#options' => array_combine(array_values($lists), array_values($lists)),
'#description' => t('Choose the mailing list to import them to.'),
);
$form[] = array(
'#type' => 'submit',
'#value' => t('Import'),
);
return $form;
}