Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding CVS $Id$ tags in preparation for drupal.org contrib

  • Loading branch information...
commit 8ff28673dd45a6043491c8c2bb9e33538f2a4ba1 1 parent 2990346
@jjeff jjeff authored
View
2  shurly.css
@@ -1,3 +1,5 @@
+/* $Id$ */
+
.shurly-choose {
color: #999;
}
View
1  shurly.js
@@ -1,3 +1,4 @@
+// $Id$
Drupal.behaviors.shurly = function() {
$('#edit-result').focus(function(){
$(this).select();
View
11 shurly.module
@@ -1,5 +1,4 @@
<?php
-
// $Id$
/**
@@ -785,7 +784,7 @@ function shurly_goto($row) {
if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update') {
// Allow other modules to implement hook_shurly_redirect()
// to add additional logging information to the database or perform other tasks
- module_invoke_all('shurly_redirect', $row);
+ module_invoke_all('shurly_redirect_before', $row);
// Allow modules to react to the end of the page request before redirecting.
module_invoke_all('exit', $url);
@@ -796,9 +795,17 @@ function shurly_goto($row) {
session_write_close();
header('Location: '. $url, TRUE, 301);
+
+ // header has been sent... browser has been redirected
+ // now we can do any expensive operations
// update access information on this row
db_query('UPDATE {shurly} SET count = count + 1, last_used = %d WHERE rid = %d', time(), $row->rid);
+
+ // note: Other modules should insert more information in the database by using
+ // hook_db_rewrite_sql() rather than creating a new db call
+
+ module_invoke_all('shurly_redirect_after', $row);
// The "Location" header sends a redirect status code to the HTTP daemon. In
// some cases this can be wrong, so we make sure none of the code below the
View
2  shurly_service/README.txt
@@ -1,3 +1,5 @@
+// $Id$
+
SHORTENING A URL:
-------------------------------
Default format is JSON:
View
2  shurly_service/shurly_api_keys.inc
@@ -1,4 +1,6 @@
<?php
+// $Id$
+
define('API_VERSION', 'A');
View
1  shurly_service/shurly_service.inc
@@ -1,5 +1,6 @@
<?php
// $Id$
+
/**
* @file
* Link general search functionalities to services module.
View
1  shurly_service/shurly_service.install
@@ -1,4 +1,5 @@
<?php
+// $Id$
/**
* Implement hook_schema().
View
1  shurly_service/shurly_service.module
@@ -1,5 +1,6 @@
<?php
// $Id$
+
/**
* @file
* Link ShURLy functionalities to services module.
Please sign in to comment.
Something went wrong with that request. Please try again.