function simplenews_subscription_filters in Simplenews 5
Same name and namespace in other branches
- 6.2 includes/simplenews.admin.inc \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 ./
simplenews.module - Return form for subscription filters.
File
- ./
simplenews.module, line 1784
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;
}
// E-mail filter
$filters['email'] = array(
'title' => t('E-mail address'),
);
return $filters;
}