Differences

This shows you the differences between two versions of the page.

dev:userprefmodule [2008/12/21 16:11]
fran typo
dev:userprefmodule [2009/07/06 20:36] (current)
Line 23: Line 23:
   NOTE: You may create files inside the mod/pref but make sure you are prefixing them with the <mod_prefix>    NOTE: You may create files inside the mod/pref but make sure you are prefixing them with the <mod_prefix>
 +
===== How to set user preference ===== ===== How to set user preference =====
Line 31: Line 32:
   NOTE: If your preference is not specific to any particular module use 'base' for the module_id    NOTE: If your preference is not specific to any particular module use 'base' for the module_id
-         if you set delete flag the preference will be deleted, remeber setting preference to '' or null may be differ from deleteing the preference+         if you set delete flag the preference will be deleted, remember setting preference to '' or null may be differ from deleting the preference
===== How to get the user preference ===== ===== How to get the user preference =====
  * You have the direct access to the session so, you can access them **$_SESSION['user_pref_<mod_prefix>_<key>']**   * You have the direct access to the session so, you can access them **$_SESSION['user_pref_<mod_prefix>_<key>']**

Navigation
  • Navigate