function simplenews_subscription_filters in Simplenews 6.2
Same name and namespace in other branches
- 5 simplenews.module \simplenews_subscription_filters()
- 6 simplenews.admin.inc \simplenews_subscription_filters()
- 7.2 includes/simplenews.admin.inc \simplenews_subscription_filters()
- 7 includes/simplenews.admin.inc \simplenews_subscription_filters()
Generate subscription filters
1 call to simplenews_subscription_filters()
- simplenews_subscription_filter_form in includes/
simplenews.admin.inc - Return form for subscription filters.
File
- includes/
simplenews.admin.inc, line 1200 - Newsletter admin, subscription admin, simplenews settings
Code
function simplenews_subscription_filters() {
// Newsletter filter
$filters['newsletter'] = array(
'title' => t('Subscribed to'),
'options' => array(
'all' => t('All newsletters'),
),
);
foreach (simplenews_get_newsletters(variable_get('simplenews_vid', ''), TRUE) as $newsletter) {
$filters['newsletter']['options']['tid-' . $newsletter->tid] = $newsletter->name;
}
// Email filter
$filters['email'] = array(
'title' => t('Email address'),
);
return $filters;
}