function xmlsitemap_db_fetch_all_assoc in XML sitemap 6.2
Backport of the DBTNG fetchAllAssoc() from Drupal 7.
1 call to xmlsitemap_db_fetch_all_assoc()
- xmlsitemap_sitemap_load_multiple in ./
xmlsitemap.module - Load multiple XML sitemaps from the database.
File
- ./
xmlsitemap.module, line 1661 - Main file for the xmlsitemap module.
Code
function xmlsitemap_db_fetch_all_assoc($query, $field) {
$return = array();
while ($result = db_fetch_object($query)) {
if (isset($result->{$field})) {
$key = $result->{$field};
$return[$key] = $result;
}
}
return $return;
}