You are here

function theme_uc_roles_user_new in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_roles/uc_roles.theme.inc \theme_uc_roles_user_new()

Themes the roles dialog on the account edit page.

1 theme call to theme_uc_roles_user_new()
uc_roles_user_form in uc_roles/uc_roles.module
Implements hook_user_form().

File

uc_roles/uc_roles.module, line 275

Code

function theme_uc_roles_user_new($form) {
  $output = '';

  // Render the expiration tables first.
  $output .= drupal_render($form['expirations']);
  $output .= '<div class="expiration">';
  $output .= drupal_render($form['new_role']);
  $output .= drupal_render($form['new_role_add']);
  $output .= drupal_render($form['new_role_add_for']);
  $output .= drupal_render($form['new_role_add_qty']);
  $output .= drupal_render($form['new_role_add_granularity']);
  $output .= '</div>';
  return $output;
}