You are here

function sms_bootstrap_load_route in SMS Framework 7

Check to see if the request path is a route register to be handled.

1 call to sms_bootstrap_load_route()
sms_incoming.inc in bootstrap/sms_incoming.inc
Include file to (ab)use the cache router to accept and queue SMS.

File

bootstrap/sms_incoming.inc, line 55
Include file to (ab)use the cache router to accept and queue SMS.

Code

function sms_bootstrap_load_route() {
  if (!($routes = variable_get('sms_bootstrap_routes', ''))) {

    // No routes defined. Allow core to continue.
    return FALSE;
  }
  if (isset($routes[request_path()])) {
    return $routes[request_path()];
  }
  return FALSE;
}