You are here

function Notifications_Subscription_Table::table_list in Notifications 7

Produce simple table with all these subscriptions

File

./notifications.list.inc, line 487
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription_Table
Loadable collection of subscriptions for tablesel ect

Code

function table_list() {
  $options = array();
  foreach ($this
    ->get_subscriptions() as $subscription) {
    $options[$subscription->sid] = $this
      ->subscription_fields($subscription);
  }
  $table = array(
    '#theme' => 'table',
    '#header' => $this
      ->get_header(),
    '#rows' => $options,
    '#empty' => t('No subscriptions available.'),
  );
  return $table;
}