You are here

function space_type::router in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 plugins/space_type.inc \space_type::router()
  2. 7 plugins/space_type.inc \space_type::router()

Route the user as necessary.

Parameters

$op: The hook or Drupal implementation point where the router is being given a chance to intervene.

$object: Optional: the menu object related to the current page request where routing may occur. For example, $object is the node object if routing occurs at node/5.

2 methods override space_type::router()
space_og::router in spaces_og/plugins/space_og.inc
Implementation of space->router().
space_taxonomy::router in spaces_taxonomy/plugins/space_taxonomy.inc
Override of router().

File

plugins/space_type.inc, line 44

Class

space_type
Common functionality for space types that implement access, routing, delegated Views filtering and feature management concepts. Examples: spaces_og, spaces_user, spaces_taxonomy.

Code

function router($op, $object = NULL) {
  switch ($op) {
    case 'init':
    case 'user':
    case 'node':
    default:
      return TRUE;
  }
}