You are here

function theme_user_relationship_implications_form_table in User Relationships 6

Same name and namespace in other branches
  1. 5.2 plugins/user_relationship_implications/user_relationship_implications.module \theme_user_relationship_implications_form_table()
  2. 7 user_relationship_implications/user_relationship_implications.module \theme_user_relationship_implications_form_table()
1 theme call to theme_user_relationship_implications_form_table()
user_relationship_implications_form_user_relationships_ui_type_edit_alter in user_relationship_implications/user_relationship_implications.module
hook_form_alter()

File

user_relationship_implications/user_relationship_implications.module, line 97
Drupal Module: User Relationship Implications

Code

function theme_user_relationship_implications_form_table($form) {
  $headers = array(
    t('Relationship Type'),
    t('Strict'),
    t('Reverse'),
  );
  $rows = array();
  foreach ($form['opts'] as $rtid => $elements) {
    if (!is_numeric($rtid)) {
      continue;
    }
    $rows[$rtid] = array(
      drupal_render(array_shift($elements)),
      drupal_render(array_shift($elements)),
      drupal_render(array_shift($elements)),
    );
  }
  return theme('table', $headers, $rows);
}