You are here

function simplenews_category_list in Simplenews 7

Get list of simplenews categories with translated names.

Return value

array of category names. Translated if required.

3 calls to simplenews_category_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.
2 string references to 'simplenews_category_list'
simplenews_rules_rules_action_info in simplenews_rules/simplenews_rules.rules.inc
Implements hook_rules_action_info().
simplenews_rules_rules_event_info in simplenews_rules/simplenews_rules.rules.inc
Implements hook_event_info().

File

./simplenews.module, line 1820
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_category_list() {
  $categories = simplenews_categories_load_multiple();
  $cats = array();
  foreach ($categories as $key => $category) {
    $cats[$key] = check_plain(_simplenews_newsletter_name($category));
  }
  return $cats;
}