You are here

function simplenews_category_get_visible in Simplenews 7

Loads all visible newsletter categories.

Does not include categories with the opt-out/opt-in setting set to hidden.

Related topics

5 calls to simplenews_category_get_visible()
simplenews_subscriptions_account_form in includes/simplenews.subscription.inc
FAPI ACCOUNT subscription form.
simplenews_subscriptions_admin_form in includes/simplenews.subscription.inc
FAPI ADMIN subscription form.
simplenews_subscriptions_multi_block_form in includes/simplenews.subscription.inc
FAPI MULTI BLOCK subscription form.
simplenews_subscriptions_page_form in includes/simplenews.subscription.inc
FAPI PAGE subscription form.
simplenews_user_view in ./simplenews.module
Implements hook_user_view().

File

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

Code

function simplenews_category_get_visible() {
  $categories =& drupal_static(__FUNCTION__, NULL);
  if (!isset($categories)) {
    $categories = simplenews_categories_load_multiple(array(), array(
      'show_all' => FALSE,
    ));
  }
  return $categories;
}