function theme_user_relationship_implications_form_table in User Relationships 7
Same name and namespace in other branches
- 5.2 plugins/user_relationship_implications/user_relationship_implications.module \theme_user_relationship_implications_form_table()
- 6 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_admin_type_edit_alter in user_relationship_implications/
user_relationship_implications.module - hook_form_alter()
File
- user_relationship_implications/
user_relationship_implications.module, line 93 - Drupal Module: User Relationship Implications
Code
function theme_user_relationship_implications_form_table($variables) {
$form = $variables['form'];
$headers = array(
t('Relationship Type'),
t('Strict'),
t('Reverse'),
);
$rows = array();
foreach ($form['opts'] as $rtid => $elements) {
if (!is_numeric($rtid)) {
continue;
}
$col1 = array_shift($elements);
$col2 = array_shift($elements);
$col3 = array_shift($elements);
$rows[$rtid] = array(
drupal_render($col1),
drupal_render($col2),
drupal_render($col3),
);
}
return theme('table', array(
'header' => $headers,
'rows' => $rows,
));
}