You are here

function theme_notifications_ui_add_list in Notifications 6.2

Same name and namespace in other branches
  1. 6.4 notifications_ui/notifications_ui.admin.inc \theme_notifications_ui_add_list()
  2. 6 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_add_list()
  3. 6.3 notifications_ui/notifications_ui.pages.inc \theme_notifications_ui_add_list()
  4. 7 notifications_ui/notifications_ui.admin.inc \theme_notifications_ui_add_list()

Display the list of available subscription types for creation

1 theme call to theme_notifications_ui_add_list()
notifications_ui_page_user_add in notifications_ui/notifications_ui.pages.inc
User add subscription

File

notifications_ui/notifications_ui.pages.inc, line 139
User pages for User Interface for subscriptions modules

Code

function theme_notifications_ui_add_list($content) {
  $output = '';
  if ($content) {
    $output = '<dl class="subscriptions-type-list">';
    foreach ($content as $item) {
      $output .= '<dt>' . l($item['title'], $item['href']) . '</dt>';
      $output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
    }
    $output .= '</dl>';
  }
  return $output;
}