Skip navigation
Help

theme_uc_roles_user_new

6 uc_roles.module theme_uc_roles_user_new($form)
7 uc_roles.theme.inc theme_uc_roles_user_new($variables)

Themes the roles dialog on the account edit page.

Parameters

$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

File

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