function _exif_check_for_exif_data in Exif 7
Same name and namespace in other branches
- 6 exif.module \_exif_check_for_exif_data()
Let's check if this node type contains an image field.
Parameters
$fields fields from this content type:
Return value
boolean
1 call to _exif_check_for_exif_data()
- _exif_node_insert_update in ./
exif.module - Main entrypoint of the module.
File
- ./
exif.module, line 420
Code
function _exif_check_for_exif_data($node_type) {
$new_types = array();
//fill up array with checked nodetypes
foreach (variable_get('exif_nodetypes', array()) as $type) {
if ($type != "0") {
$new_types[] = $type;
}
}
foreach (variable_get('exif_mediatypes', array()) as $type) {
if ($type != "0") {
$new_types[] = $type;
}
}
if (in_array($node_type, $new_types)) {
return TRUE;
}
return FALSE;
}