function uc_zone_get_by_id in Ubercart 7.3
Same name and namespace in other branches
- 6.2 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 1292 - Contains global Ubercart functions and store administration functionality.
Code
function uc_zone_get_by_id($id) {
return db_query("SELECT zone_name FROM {uc_zones} WHERE zone_id = :id", array(
':id' => $id,
))
->fetchField();
}