You are here

function theme_uc_role_user_new in Ubercart 8.4

Themes the roles dialog on the account edit page.

Parameters

array $variables: An associative array containing:

  • form: A render element representing the form.

Return value

string Formatted HTML.

1 string reference to 'theme_uc_role_user_new'
uc_role_theme in uc_role/uc_role.module
Implements hook_theme().
1 theme call to theme_uc_role_user_new()
uc_role_form_user_profile_form_alter in uc_role/uc_role.module
Implements hook_form_user_profile_form_alter().

File

uc_role/uc_role.theme.inc, line 20
Theme functions for the uc_role module.

Code

function theme_uc_role_user_new(array $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;
}