You are here

function addressfield_tokens_theme in Addressfield Tokens 7

Implements hook_theme().

File

./addressfield_tokens.module, line 29
Main components.

Code

function addressfield_tokens_theme($existing, $type, $theme, $path) {
  $theme = array(
    'addressfield_formatter' => array(
      'variables' => array(
        'address' => NULL,
        'handlers' => array(
          'address',
        ),
      ),
      'file' => 'addressfield_tokens.theme.inc',
    ),
    'addressfield_formatter__citystate' => array(
      'variables' => array(
        'address' => NULL,
      ),
      'file' => 'addressfield_tokens.theme.inc',
    ),
    'addressfield_formatter__linear' => array(
      'variables' => array(
        'address' => NULL,
        'premise' => TRUE,
        'organisation_name' => TRUE,
        'name_line' => TRUE,
      ),
      'file' => 'addressfield_tokens.theme.inc',
    ),
    'addressfield_formatter__components' => array(
      'variables' => array(
        'address' => NULL,
        'components' => array(
          'thoroughfare',
          'premise',
          'locality',
          'administrative_area',
          'postal_code',
          'country',
        ),
        'separator' => ', ',
      ),
      'file' => 'addressfield_tokens.theme.inc',
    ),
  );
  return $theme;
}