ezpreference

Summary

Provides access to a user's preference values.

Usage

ezpreference( preference )

Parameters

NameTypeDescriptionRequired
preference string The name of the preference that should be extracted. Yes.

Returns

A string containing the contents/value of the specified preference.

Description

This operator makes it possible to extract the preference values of the current user. The name of the desired preference must be provided as a parameter. The function returns the value/contents of the specified preference. The current user can set a preference by requesting a URL of the following type:

/user/preferences/set/[name_of_preference]/[value]

Examples

Example 1

{ezpreference( 'bookmark_menu' )}

Returns the value/contents of the "bookmark_menu" preference for the current user.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.