You are here

function shorten_cs_load in Shorten URLs 7

Same name and namespace in other branches
  1. 8.2 modules/shorten_cs/shorten_cs.module \shorten_cs_load()
  2. 8 modules/shorten_cs/shorten_cs.module \shorten_cs_load()
  3. 6 shorten_cs.module \shorten_cs_load()
  4. 7.2 shorten_cs.module \shorten_cs_load()

Loads a custom service object.

File

./shorten_cs.module, line 91
Allows users to specify custom services for the Shorten URLs module.

Code

function shorten_cs_load($sid) {
  return db_query("SELECT * FROM {shorten_cs} WHERE sid = :sid", array(
    ':sid' => $sid,
  ))
    ->fetchObject();
}