You are here

function location_cck_token_list in Location 7.5

Same name and namespace in other branches
  1. 6.3 contrib/location_cck/location_cck.module \location_cck_token_list()
  2. 7.4 contrib/location_cck/location_cck.module \location_cck_token_list()

Implements hook_token_list().

File

contrib/location_cck/location_cck.module, line 517
Defines location field type.

Code

function location_cck_token_list($type = 'all') {
  if ($type == 'field') {
    $tokens = array();
    $fields = location_field_names(TRUE);

    // @@@ We really need to rethink fields in location..
    unset($fields['locpick']);
    foreach ($fields as $k => $v) {
      $tokens['location'][$k] = $v;
    }
    return $tokens;
  }
}