You are here

function simplenews_issue_filters in Simplenews 7.2

Same name and namespace in other branches
  1. 7 includes/simplenews.admin.inc \simplenews_issue_filters()

Generate issue filters

1 call to simplenews_issue_filters()
simplenews_issue_filter_form in includes/simplenews.admin.inc
Return form for issue filters.

File

includes/simplenews.admin.inc, line 29
Newsletter admin, subscription admin, simplenews settings

Code

function simplenews_issue_filters() {

  // Newsletter filter
  $filters['newsletter'] = array(
    'title' => t('Subscribed to'),
    'options' => array(
      'all' => t('All newsletters'),
      'newsletter_id-0' => t('Unassigned newsletters'),
    ),
  );
  foreach (simplenews_newsletter_list() as $newsletter_id => $name) {
    $filters['newsletter']['options']['newsletter_id-' . $newsletter_id] = $name;
  }
  return $filters;
}