function exif_get_enabled_tags in Exif 5
Return an array containing only the tags that were enabled.
2 calls to exif_get_enabled_tags()
- theme_exif_table in ./
exif.module - _exif_read_exif in ./
exif.module - Reads exif data from a file.
File
- ./
exif.module, line 195
Code
function exif_get_enabled_tags() {
static $tags = array();
if (!count($tags)) {
$result = db_query('SELECT * FROM {exif_tags} WHERE status = 1');
while ($tag = db_fetch_object($result)) {
$tags[] = $tag;
}
if (!count($tags)) {
// Table is empty, get some defaults
$tags = exif_get_default_settings();
foreach ($tags as $key => $tag) {
if (!$tag->status) {
unset($tags[$key]);
}
}
}
usort($tags, '_exif_compare_tags');
}
return $tags;
}