function theme_ad_owner_permissions_form in Advertisement 6
Same name and namespace in other branches
- 6.3 owners/ad_owners.module \theme_ad_owner_permissions_form()
- 6.2 owners/ad_owners.module \theme_ad_owner_permissions_form()
- 7 owners/ad_owners.module \theme_ad_owner_permissions_form()
Display ad owner permissions in a simple table.
File
- owners/
ad_owners.module, line 461 - 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;
}