function exif_location_form_alter in Exif 7
Same name and namespace in other branches
- 6 exif_location/exif_location.module \exif_location_form_alter()
Implementation of hook_form_alter
_state _id
Parameters
array $form:
File
- exif_location/
exif_location.module, line 45 - Sets Location module coordinates from GPS EXIF image data
Code
function exif_location_form_alter(&$form, $form_state, $form_id) {
/* Comment out the return below to enable this */
return;
/* Remove the location element from the node form */
if (isset($form['#node']) && $form['#node']->type == 'image' && $form_id == $form['#node']->type . '_node_form') {
$form['locations']['#access'] = FALSE;
}
}