You are here

function uc_zone_get_by_id in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_store/uc_store.module \uc_zone_get_by_id()

Retrieves a zone's name from the database, using its ID.

Parameters

$id: The zone's ID.

1 call to uc_zone_get_by_id()
uc_googleanalytics_ecommerce_js in uc_googleanalytics/uc_googleanalytics.module
Build the e-commerce JS passed to Google Analytics for order tracking.

File

uc_store/uc_store.module, line 1275
Contains global Ubercart functions and store administration functionality.

Code

function uc_zone_get_by_id($id) {
  return db_result(db_query("SELECT zone_name FROM {uc_zones} WHERE zone_id = %d", $id));
}