function exif_location_form_alter in Exif 6
Same name and namespace in other branches
- 7 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 58
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;
}
}