viewforum query hook

These event requests have either been rejected by the community or have become redundant because of code changes or other events requests.
Post Reply
Registered User
Posts: 5
Joined: Fri Feb 06, 2009 5:39 am

viewforum query hook

Post by splitice »

Name: hook_viewforum_sql

* Rationale: Allows the modificatation of sort order and filtering and just the SQL query in general. Used in mods that customise the viewforum output or sorting order/key, e.g add WHERE forum_icon= to the query

* Placement: viewforum.php

* Input arguments: $sql (the old sql, array or string?), sort key, sort order

* Output format:
false/null => Use normal passed sql/normal
string => Replace sql with string
array => build SQL -> Replace

* Output semantics:

* Infrastructure: void

* Related: none

Post Reply