function theme_ad_owner_permissions_form in Advertisement 7
Same name and namespace in other branches
- 6.3 owners/ad_owners.module \theme_ad_owner_permissions_form()
- 6 owners/ad_owners.module \theme_ad_owner_permissions_form()
- 6.2 owners/ad_owners.module \theme_ad_owner_permissions_form()
Display ad owner permissions in a simple table.
File
- owners/
ad_owners.module, line 523 - Enhances the ad module to support ad owners.
Code
function theme_ad_owner_permissions_form($form) {
$output = drupal_render($form['options']);
foreach (element_children($form['permission']) as $key) {
$row = array();
$row[] = drupal_render($form['permission'][$key]);
$row[] = drupal_render($form['grant'][str_replace(' ', '_', $key)]);
$rows[] = $row;
}
$output = theme('table', $form['header']['#value'], $rows);
$output .= drupal_render($form);
return $output;
}