function constant_contact_get_lists in Constant Contact 5
Same name and namespace in other branches
- 6.3 constant_contact.module \constant_contact_get_lists()
- 6 constant_contact.module \constant_contact_get_lists()
- 7.3 constant_contact.module \constant_contact_get_lists()
returns an array of available lists
Return value
array list of available lists, based on constant_contact_lists variable
7 calls to constant_contact_get_lists()
- constant_contact_admin_settings in ./
constant_contact.module - Implementation of hook_form()
- constant_contact_block in ./
constant_contact.module - Implementation of hook_block().
- constant_contact_block_form in ./
constant_contact.module - Implementation of hook_form() creates the join mailing list block
- constant_contact_import in ./
constant_contact.module - Implementation of hook_form() import users
- constant_contact_import_submit in ./
constant_contact.module - Implementation of hook_form_submit() process import users
File
- ./
constant_contact.module, line 532
Code
function constant_contact_get_lists() {
$lists = explode("\n", variable_get('constant_contact_lists', ''));
$newlists = array();
foreach ($lists as $i => $list) {
$list = trim($list);
if (empty($list)) {
continue;
}
$newlists[constant_contact_escape_listname($list)] = $list;
}
return $newlists;
}