function simplenews_newsletter_list in Simplenews 7.2
Same name and namespace in other branches
- 8.2 simplenews.module \simplenews_newsletter_list()
- 8 simplenews.module \simplenews_newsletter_list()
- 3.x simplenews.module \simplenews_newsletter_list()
Get list of simplenews categories with translated names.
@todo Maybe refactor this method to simplenews_newsletter_name_list.
Return value
array of newsletter names. Translated if required.
3 calls to simplenews_newsletter_list()
- simplenews_admin_issues in includes/
simplenews.admin.inc - Form builder: Builds a list of newsletters with operations.
- simplenews_issue_filters in includes/
simplenews.admin.inc - Generate issue filters
- simplenews_subscription_list_export in includes/
simplenews.admin.inc - Menu callback: Export email address of subscriptions.
1 string reference to 'simplenews_newsletter_list'
- simplenews_rules_rules_action_info in simplenews_rules/
simplenews_rules.rules.inc - Implements hook_rules_action_info().
File
- ./
simplenews.module, line 2020 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_newsletter_list() {
$newsletters = array();
foreach (simplenews_newsletter_get_all() as $id => $newsletter) {
$newsletters[$id] = check_plain($newsletter->name);
}
return $newsletters;
}