You are here

function _location_taxonomize_variables in Location Taxonomize 7.2

Same name and namespace in other branches
  1. 7 location_taxonomize.inc \_location_taxonomize_variables()

Keeps a list of all the variables maintained by this module, with their default values. These default value are applied during installation. Some defaults are set elsewhere (e.g. during initialization).

2 calls to _location_taxonomize_variables()
_location_taxonomize_del_variables in ./location_taxonomize.inc
Deletes all variables set by this module
_location_taxonomize_set_defaults in ./location_taxonomize.inc
Sets all this module's variables to their default values

File

./location_taxonomize.inc, line 29
Some useful functions for Location taxonomize

Code

function _location_taxonomize_variables() {
  return array(
    'location_taxonomize_vid' => NULL,
    'location_taxonomize_vocab' => array(
      'source' => NULL,
      'method' => 'existing',
      'possible_vid' => NULL,
      'hierarchy' => NULL,
    ),
    'location_taxonomize_settings' => array(
      'enable' => 1,
      'term_attach' => 0,
      'hide_terms_field' => 0,
      'naming' => array(
        'country' => 'name',
        'province' => 'name',
        'usa' => 1,
      ),
      'na_text' => 'Unknown',
      'longname_enable' => 0,
      'longname' => array(
        'main' => 0,
        // this is set by the initialization process
        'fields' => NULL,
        'separator' => ',',
        'country_naming' => 'code',
        'province_naming' => 'code',
        'usa' => 1,
      ),
    ),
    'location_taxonomize_show_messages' => 1,
  );
}