Classes and Methods Using e107's built-in classes and methods.

Preferences

Developers may retrieve admin preferences for their theme or plugin, or a core preference using the following method:

e107::pref(type, value);

Example: Load a stored value that was saved in the preferences admin area of the 'faqs' plugin

$myprefs = e107::pref('faqs'); // returns an array.

Or load a single preference value.
$perPage = e107::pref('faqs', 'faqs_per_page');

Type Value (optional)
core all core preference values.
theme preferences of the currently selected front-end theme.
(any plugin folder name) preferences of a particular plugin

Thursday 13 June 2013 - 17:00:00 admin,