function Notifications_Subscription_List::element_items in Notifications 7
Build fieldset with subscription names
2 calls to Notifications_Subscription_List::element_items()
- Notifications_Subscription_List::get_elements in ./
notifications.list.inc - Get elements
- Notifications_Subscription_List::get_form in ./
notifications.list.inc - Get options form
File
- ./
notifications.list.inc, line 398 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription_List
- List of subscriptions or subscription types
Code
function element_items($element = array()) {
foreach ($this
->get_instances() as $index => $subscription) {
$items[] = $subscription
->get_name();
}
return $element + array(
'#title' => t('Subscription list'),
'#theme' => 'item_list',
'#items' => $items,
);
}