File/program/modules/redirect/redirect_view.php

Description

/program/modules/redirect/redirect_view.php - interface to the view-part of the redirect module

This file defines the interface with the redirect-module for viewing content. The interface consists of this function:

    redirect_view(&$output,$area_id,$node_id,$module)

This function is called from /index.php when the node to display is connected to this module.

However, since this module is the redirect module, this routine is never called because the execution of the redirection is done in main_index.php rather than here (deeply nested) in a module. At that higher level we are in a better position to handle the premature end of execution of main_index.php following sending the redirect header. Therefore this routine, too, is a nop.

Functions
redirect_view (line 62)

display the content of the redirect linked to node $node_id

Since this module is the redirect module, this routine should never be called because the execution of the redirection is done in main_index.php rather than here (deeply nested) in a module. At that higher level we are in a better position to handle the premature end of execution of main_index.php following sending the redirect header. Therefore this routine is a nop.

However, it is possible that the module is (still) connected to the node but without a (valid) url. In that case the visitor sees a blank page but with complete navigation etc. Can't win 'm all...

  • return: TRUE on success + output via $theme, FALSE otherwise
bool redirect_view (object &$theme, int $area_id, int $node_id, array $module)
  • object &$theme: collects the (html) output
  • int $area_id: identifies the area where $node_id lives
  • int $node_id: the node to which this module is connected
  • array $module: the module record straight from the database

Documentation generated on Tue, 28 Jun 2016 19:11:21 +0200 by phpDocumentor 1.4.0