You are here

function simplenews_issue_filters in Simplenews 7

Same name and namespace in other branches
  1. 7.2 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['category'] = array(
    'title' => t('Subscribed to'),
    'options' => array(
      'all' => t('All newsletters'),
      'tid-0' => t('Unassigned newsletters'),
    ),
  );
  foreach (simplenews_category_list() as $tid => $name) {
    $filters['category']['options']['tid-' . $tid] = $name;
  }
  return $filters;
}