/[drupal]/contributions/modules/location/handlers/location_handler_argument_location_province.inc
ViewVC logotype

Diff of /contributions/modules/location/handlers/location_handler_argument_location_province.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue Sep 16 18:23:09 2008 UTC revision 1.2, Mon Aug 31 22:09:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: location_handler_argument_location_province.inc,v 1.1 2008/09/16 18:23:09 bdragon Exp $
3    
4  /**  /**
5   * Argument handler to accept a province code or name.   * Argument handler to accept a province code or name.
# Line 13  class location_handler_argument_location Line 13  class location_handler_argument_location
13        $country = $this->view->argument['country']->argument;        $country = $this->view->argument['country']->argument;
14      }      }
15      else {      else {
16        $country = variable_get('location_default_country', 'us');        $country = variable_get('site_default_country', 'us');
17      }      }
18      return location_province_name($country, $this->argument);      return location_province_name($country, $this->argument);
19    }    }
# Line 28  class location_handler_argument_location Line 28  class location_handler_argument_location
28        $country = $this->view->argument['country']->argument;        $country = $this->view->argument['country']->argument;
29      }      }
30      else {      else {
31        $country = variable_get('location_default_country', 'us');        $country = variable_get('site_default_country', 'us');
32      }      }
33    
34      return location_province_name($country, $value);      return location_province_name($country, $value);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2