aboutsummaryrefslogtreecommitdiff
path: root/exif_location/exif_location.module
diff options
context:
space:
mode:
Diffstat (limited to 'exif_location/exif_location.module')
-rw-r--r--exif_location/exif_location.module25
1 files changed, 10 insertions, 15 deletions
diff --git a/exif_location/exif_location.module b/exif_location/exif_location.module
index 98b081d..f0d5093 100644
--- a/exif_location/exif_location.module
+++ b/exif_location/exif_location.module
@@ -1,15 +1,11 @@
<?php
-// $Id: exif_location.module,v 1.1.2.3 2010/03/19 22:17:00 rapsli Exp $
-/**
- * implementation of hook_nodeapi
- * @param stdClass $node
- * @param string $op
- * @param string $a3
- * @param string $a4
+/*
+ * Hook nodeapi.
*/
+
function exif_location_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
- switch ($op) {
+ switch($op) {
case 'presave':
$lid = 0;
/* Go get the location from EXIF fields */
@@ -24,8 +20,7 @@ function exif_location_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
*/
$node->locations[$lid]['longitude'] = $longitude;
$node->locations[$lid]['latitude'] = $latitude;
- }
- else {
+ } else {
$node->locations[$lid] =
array(
'longitude' => $longitude,
@@ -45,12 +40,10 @@ function exif_location_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
}
}
-/**
- * Implementation of hook_form_alter
- * @param array $form
- * @param array $form_state
- * @param array $form_id
+/*
+ * Hook form_alter.
*/
+
function exif_location_form_alter(&$form, $form_state, $form_id) {
/* Comment out the return below to enable this */
return;
@@ -61,3 +54,5 @@ function exif_location_form_alter(&$form, $form_state, $form_id) {
$form['locations']['#access'] = FALSE;
}
}
+
+?>