aboutsummaryrefslogtreecommitdiff
path: root/exif_location
diff options
context:
space:
mode:
Diffstat (limited to 'exif_location')
-rw-r--r--exif_location/CVS/Entries6
-rw-r--r--exif_location/CVS/Tag1
-rw-r--r--exif_location/exif_location.info1
-rw-r--r--exif_location/exif_location.install7
-rw-r--r--exif_location/exif_location.module25
5 files changed, 15 insertions, 25 deletions
diff --git a/exif_location/CVS/Entries b/exif_location/CVS/Entries
index 46167ab..61c0fea 100644
--- a/exif_location/CVS/Entries
+++ b/exif_location/CVS/Entries
@@ -1,4 +1,4 @@
-/exif_location.info/1.1.2.2/Tue Jan 26 20:28:23 2010//TDRUPAL-6--1
-/exif_location.install/1.1.2.3/Fri Mar 19 22:17:00 2010//TDRUPAL-6--1
-/exif_location.module/1.1.2.3/Fri Mar 19 22:17:00 2010//TDRUPAL-6--1
+/exif_location.info/1.1/Thu Oct 7 21:44:03 2010//
+/exif_location.install/1.1/Thu Oct 7 21:44:03 2010//
+/exif_location.module/1.1/Thu Oct 7 21:44:03 2010//
D
diff --git a/exif_location/CVS/Tag b/exif_location/CVS/Tag
deleted file mode 100644
index d7ee0a3..0000000
--- a/exif_location/CVS/Tag
+++ /dev/null
@@ -1 +0,0 @@
-TDRUPAL-6--1
diff --git a/exif_location/exif_location.info b/exif_location/exif_location.info
index 3702dbb..1eaa37a 100644
--- a/exif_location/exif_location.info
+++ b/exif_location/exif_location.info
@@ -1,6 +1,5 @@
name = EXIF Location
description = "Sets a node location based on EXIF info in image."
core = 6.x
-version = "6.x-0.1"
dependencies[] = exif
diff --git a/exif_location/exif_location.install b/exif_location/exif_location.install
index 31fc3e8..a1fb871 100644
--- a/exif_location/exif_location.install
+++ b/exif_location/exif_location.install
@@ -1,9 +1,4 @@
<?php
-// $Id: exif_location.install,v 1.1.2.3 2010/03/19 22:17:00 rapsli Exp $
-
-/**
- * @file This is the exif location install part
- */
/*
* Hook sets weight must be less than exif module (zero by default).
@@ -13,3 +8,5 @@ function exif_location_install() {
$ret[] = db_query("UPDATE {system} SET weight = 2 WHERE name = 'exif_location'");
return $ret;
}
+
+?>
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;
}
}
+
+?>