function simplenews_subscription_filters in Simplenews 6
Same name and namespace in other branches
- 5 simplenews.module \simplenews_subscription_filters()
- 6.2 includes/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 ./
simplenews.admin.inc - Return form for subscription filters.
File
- ./
simplenews.admin.inc, line 1045 - 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 (taxonomy_get_tree(variable_get('simplenews_vid', '')) as $newsletter) {
$filters['newsletter']['options']['tid-' . $newsletter->tid] = $newsletter->name;
}
// Email filter
$filters['email'] = array(
'title' => t('Email address'),
);
return $filters;
}