• Welcome to Simple Machines Community Forum. Please login or sign up.

setupThemeContext

Description

Sets up various $context values used for the theme (most of which are used in index.template.php).

Syntax

void setupThemeContext ([bool $forceload])



Parameter $forceload

Expected type: Boolean
Description: Whether or not to force reloading of the data. Used to prevent potential issues caused by calling this function more than once. Default is false.


Notes

  • Sets all the "$context['allow_" items used for the template_menu function
  • Sets $context['news_lines'] and $context['fader_news_lines']
  • Sets various $context['user'] items used for the theme as well
Advertisement: