function _exif_check_for_exif_data in Exif 6
Same name and namespace in other branches
- 7 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_nodeapi in ./
exif.module - implementation of hook_nodeapi
File
- ./
exif.module, line 198 - implementing the drupal api
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;
}
}
if (in_array($node_type, $new_types)) {
return TRUE;
}
return FALSE;
}