You are here

function _google_image_sitemap_valid_sitemap_id in Google Image Sitemap 6

Same name and namespace in other branches
  1. 7 google_image_sitemap.module \_google_image_sitemap_valid_sitemap_id()

This will check a valid sitemap_id with database table.

3 calls to _google_image_sitemap_valid_sitemap_id()
_google_image_sitemap_build in ./google_image_sitemap.module
Menu callback for sitemap generate.
_google_image_sitemap_create_form in ./google_image_sitemap.module
Form builder: Generate a form to add/edit sitemaps.
_google_image_sitemap_delete_form in ./google_image_sitemap.module
This will delete a sitemap of user.

File

./google_image_sitemap.module, line 315
A module gives to Google information about images on your site.

Code

function _google_image_sitemap_valid_sitemap_id($sitemap_id) {
  $row = db_fetch_object(db_query("SELECT * FROM {google_image_sitemap} WHERE sid = %d", $sitemap_id));
  if (!empty($row->sid)) {
    return $row;
  }
  else {
    return FALSE;
  }
}