You are here

function contactinfo_defaults in Contact Info 7

Returns the default values for the site contact information.

Return value

array Default values for all contact info keys.

1 call to contactinfo_defaults()
contactinfo_get_contactinfo in ./contactinfo.module
Helper function to return saved contact information.
1 string reference to 'contactinfo_defaults'
contactinfo_variable_info in ./contactinfo.variable.inc
Implements hook_variable_info().

File

./contactinfo.module, line 285
Collects contact information and displays it in an hCard block.

Code

function contactinfo_defaults() {
  return array(
    'type' => 'personal',
    'fn_n' => array(
      'given-name' => '',
      'family-name' => '',
    ),
    'org' => '',
    'use_site_name' => 0,
    'tagline' => '',
    'use_site_slogan' => 0,
    'adr' => array(
      'street-address' => '',
      'extended-address' => '',
      'locality' => '',
      'region' => '',
      'postal-code' => '',
      'country-name' => '',
    ),
    'location' => array(
      'longitude' => '',
      'latitude' => '',
    ),
    'phone' => array(
      'voice' => '',
      'fax' => '',
    ),
    'email' => '',
  );
}