You are here

function theme_notifications_ui_subscription_types in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_subscription_types()
  2. 6.2 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_subscription_types()
  3. 6.3 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_subscription_types()

Format subscription type settings

File

notifications_ui/notifications_ui.admin.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;
}