You are here

function theme_uc_roles_user_new in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_roles/uc_roles.module \theme_uc_roles_user_new()

Themes the roles dialog on the account edit page.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.
1 theme call to theme_uc_roles_user_new()
uc_roles_form_user_profile_form_alter in uc_roles/uc_roles.module
Implements hook_form_user_profile_form_alter().

File

uc_roles/uc_roles.theme.inc, line 17
Theme functions for the uc_roles module.

Code

function theme_uc_roles_user_new($variables) {
  $form = $variables['form'];

  // 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;
}