You are here

function gotwo_load in Go - url redirects 7

Same name and namespace in other branches
  1. 6 gotwo.module \gotwo_load()

Menu helper function to verify if gotwo id exists.

File

./gotwo.module, line 98
Module that provides easy to use redirection links. A redirection link would be like: http://examples.org/go/a_label http://examples.org/go/123546 http://examples.org/go/or/like/this

Code

function gotwo_load($gid) {
  return db_query("SELECT * FROM {gotwo} WHERE gid = :gid", array(
    ':gid' => $gid,
  ))
    ->fetchObject();
}