You are here

function theme_cck_phone_phone_number in Phone Number 7

Returns HTML for a phone number element.

Parameters

$variables: An associative array containing:

  • element: A render element representing the file.
1 theme call to theme_cck_phone_phone_number()
cck_phone_element_info in ./cck_phone.module
Implements hook_element_info().

File

./cck_phone.module, line 896
Defines phone number fields for CCK. Provide some verifications on the phone numbers

Code

function theme_cck_phone_phone_number($variables) {
  $element = $variables['element'];

  // This wrapper is required to apply JS behaviors and CSS styling.
  $output = '';
  $output .= '<div class="form-phone-number">';
  $output .= drupal_render_children($element);
  $output .= '</div>';
  return $output;
}