function theme_messaging_subscriptions_table in Messaging 6
Theme subscriptions table
1 theme call to theme_messaging_subscriptions_table()
- messaging_notify_user_form in messaging_notify/
messaging_notify.module - Form to set up multiple notifications for a sending method
File
- messaging_notify/
messaging_notify.module, line 454 - Subscriptions to messaging events
Code
function theme_messaging_subscriptions_table(&$form) {
$output = '';
$rows = array();
foreach (element_children($form['check']) as $key) {
$rows[] = array(
drupal_render($form['check'][$key]),
drupal_render($form['method'][$key]),
drupal_render($form['interval'][$key]),
);
}
if ($rows) {
$header = array(
theme('table_select_header_cell'),
t('Send method'),
t('Interval'),
);
$output .= theme('table', $header, $rows);
}
$output .= drupal_render($form);
return $output;
}