Customising/Themes/Mahara 1.3 Themes

From Mahara Wiki
Jump to: navigation, search

Limiting Themes to Institutions

Mahara 1.3 supports the ability to limit a theme to a set of institutions so that only the institutions specified in the theme's configuration file will be able to view or set that theme.

To limit a theme to a single institution, you can add an array containing the names of each institution which should have access to the theme to the themeconfig.php - for example:

$theme->institutions = array('institution_a', 'institution_b');

All themes will still be accessible to be set as a Site-wide theme, even if the $theme->institutions array is set.