You are here

function phone_theme in Phone 7.2

Same name and namespace in other branches
  1. 6 phone.module \phone_theme()

Implements hook_theme().

File

./phone.module, line 1044
The phone module lets administrators use a phone number field type.

Code

function phone_theme($existing, $type, $theme, $path) {
  $hooks = array();
  $base = array(
    'file' => 'phone.element.inc',
    'path' => $path . '/includes',
  );
  $hooks['phone'] = $base + array(
    'render element' => 'element',
  );
  $hooks['phone_tel'] = $base + array(
    'render element' => 'element',
  );
  $hooks['phone_part_label_number'] = $base + array(
    'variables' => array(
      'element' => NULL,
    ),
  );
  $hooks['phone_part_label_country'] = $base + array(
    'variables' => array(
      'element' => NULL,
    ),
  );
  $hooks['phone_part_label_extension'] = $base + array(
    'variables' => array(
      'element' => NULL,
    ),
  );
  $hooks['phone_part_label_type'] = $base + array(
    'variables' => array(
      'element' => NULL,
    ),
  );
  return $hooks;
}