function theme_notifications_ui_subscription_types in Notifications 6.2
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.admin.inc \theme_notifications_ui_subscription_types()
- 6 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_subscription_types()
- 6.3 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_subscription_types()
Format subscription type settings
File
- notifications_ui/
notifications_ui.pages.inc, line 99 - User pages for User Interface for subscriptions modules
Code
function theme_notifications_ui_subscription_types(&$elements) {
$output = '';
$header = array(
'',
t('Enabled'),
t('Show user account page'),
t('Show create subscription page'),
);
$rows = array();
foreach (element_children($elements) as $key) {
$rows[] = array(
drupal_render($elements[$key]['title']),
drupal_render($elements[$key]['enabled']),
drupal_render($elements[$key]['page']),
drupal_render($elements[$key]['create']),
);
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($elements);
return $output;
}