You are here

function _taxonomy_image_exists in Taxonomy Image 6

Same name and namespace in other branches
  1. 5 taxonomy_image.module \_taxonomy_image_exists()

Check if the given TID has an image associated.

Parameters

$tid: Term-ID to check:

Return value

the image filename or FALSE

3 calls to _taxonomy_image_exists()
taxonomy_image_add in ./taxonomy_image.module
Helper function for adding an image to a term
taxonomy_image_delete in ./taxonomy_image.module
Deletes the Taxonomy Image associated with the given termid.
taxonomy_image_taxonomy in ./taxonomy_image.module
Implementation of hook_taxonomy().

File

./taxonomy_image.module, line 786
taxonomy_image.module Simple module for providing an association between taxonomy terms and images. Written by Jeremy Andrews <jeremy@kerneltrap.org>, May 2004.

Code

function _taxonomy_image_exists($tid) {
  return db_result(db_query("SELECT path FROM {term_image} WHERE tid=%d", $tid));
}