You are here

function location_geocode_us_yahoo_settings in Location 5

Same name and namespace in other branches
  1. 5.3 supported/location.us.inc \location_geocode_us_yahoo_settings()
  2. 6.3 supported/location.us.inc \location_geocode_us_yahoo_settings()
  3. 7.5 supported/location.us.inc \location_geocode_us_yahoo_settings()
  4. 7.3 supported/location.us.inc \location_geocode_us_yahoo_settings()
  5. 7.4 supported/location.us.inc \location_geocode_us_yahoo_settings()

File

supported/location.us.inc, line 228

Code

function location_geocode_us_yahoo_settings() {
  $form = array();
  $form['location_geocode_us_yahoo_appid'] = array(
    '#type' => 'textfield',
    '#title' => t('Yahoo! Web Services Application ID'),
    '#size' => 64,
    '#maxlength' => 128,
    '#default_value' => variable_get('location_geocode_us_yahoo_appid', 'YahooDemo'),
    '#description' => t('Unless you are using this site to test and develop, you will need to obtain a Yahoo! Web Services Application ID from the %network_link.  If you are using for development and testing purposes, you can use \'YahooDemo\' as your AppID.  When getting an Application ID from Yahoo!, please also be sure to review the %usage_policy.', array(
      '%network_link' => '<a href="http://api.search.yahoo.com/webservices/register_application">Yahoo! Developer Network</a>',
      '%usage_policy' => '<a href="http://developer.yahoo.com/usagePolicy/index.html">usage policy</a>',
    )),
  );
  return $form;
}