function theme_notify_admin_skip in Notify 7
Theme function to theme the admin skip flag settings form in a table format.
File
- ./
notify.admin.inc, line 575 - Administrative pages callbacks for the Notify module.
Code
function theme_notify_admin_skip($variables) {
$form = $variables['form'];
$output = drupal_render($form['info']);
$header = array(
t('Nid'),
t('Cid'),
t('Created'),
t('Updated'),
t('Title'),
t('Skip'),
);
$rows = array();
foreach (element_children($form['entities']) as $uid) {
$row = array();
foreach (element_children($form['entities'][$uid]) as $entry_key) {
unset($form['entities'][$uid][$entry_key]['#title']);
$row[] = drupal_render($form['entities'][$uid][$entry_key]);
}
$rows[] = $row;
}
if (!$rows) {
$rows[] = array(
array(
'data' => t('No notifications are scheduled.'),
'colspan' => 6,
),
);
}
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}