You are here

function theme_heartbeat_message_user_select_form in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 heartbeat.module \theme_heartbeat_message_user_select_form()

Theme function for the user profile form.

1 theme call to theme_heartbeat_message_user_select_form()
_theme_user_message_select_form in ./heartbeat.module
Helper theme function for the activity selection in the user profile form

File

./heartbeat.module, line 981

Code

function theme_heartbeat_message_user_select_form($form) {
  $rows = array();
  foreach (element_children($form) as $key) {
    $row = array();
    if (isset($form[$key]['title']) && is_array($form[$key]['title'])) {
      $row[] = drupal_render($form[$key]['title']);
      $row[] = drupal_render($form[$key]['access']);
    }
    $rows[] = $row;
  }
  $headers = array(
    t('Message types'),
    t('Operations'),
  );
  $output = theme('table', $headers, $rows);
  return $output;
}