You are here

function theme_signup_node_admin_details_form in Signup 5.2

Same name and namespace in other branches
  1. 6.2 theme/node.admin.inc \theme_signup_node_admin_details_form()
  2. 6 theme/node.admin.inc \theme_signup_node_admin_details_form()
  3. 7 theme/node.admin.inc \theme_signup_node_admin_details_form()

File

./signup.module, line 2068
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function theme_signup_node_admin_details_form($form) {
  $fieldset = array(
    '#title' => t('Signup details'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  if (!empty($form['users']['#options'])) {
    $header = $form['#header'];
    $rows = array();
    foreach ($form['users']['#options'] as $key => $value) {
      $rows[] = array(
        'cancel_checkbox' => drupal_render($form['users'][$key]),
        'username' => drupal_render($form['username'][$key]),
        'signup_date' => drupal_render($form['signup_date'][$key]),
        'signup_form_data' => drupal_render($form['signup_form_data'][$key]),
      );
    }
    $fieldset['#value'] = theme('table', $header, $rows) . drupal_render($form['submit_cancel']);
  }
  else {
    $fieldset['#value'] = '<span>' . drupal_render($form['no_users']) . '</span>';
  }
  return theme('fieldset', $fieldset) . drupal_render($form);
}