function Notifications_Subscription_Table::table_select in Notifications 7
Produce a select table with all these subscriptions
File
- ./
notifications.list.inc, line 471 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription_Table
- Loadable collection of subscriptions for tablesel ect
Code
function table_select() {
$options = array();
foreach ($this
->get_subscriptions() as $subscription) {
$options[$subscription->sid] = $this
->subscription_fields($subscription);
}
$table = array(
'#type' => 'tableselect',
'#header' => $this
->get_header(),
'#options' => $options,
'#empty' => t('No subscriptions available.'),
);
return $table;
}