function exif_custom_get_mapping in EXIF Custom 7
Load a mapping for the current user, or the default if not set.
Return value
array The appropriate mapping for this user.
1 call to exif_custom_get_mapping()
- exif_custom_process_entity in ./
exif_custom.module - Process a given entity to see if it has EXIF data to be saved.
File
- ./
exif_custom.module, line 275 - Primary hook implementations for EXIF Custom.
Code
function exif_custom_get_mapping() {
// First try and get users default.
$mid = exif_custom_get_user_default();
// Use site default or item 0.
if (empty($mid)) {
$mid = variable_get('exif_custom_default', 0);
}
$return = db_query("SELECT * FROM {exif_custom_mapped_fields}\n WHERE mid = :mid AND img_field != 'none'", array(
':mid' => $mid,
))
->fetchAllAssoc('img_field');
return $return;
}