Variables

Revision as of 21:43, 22 September 2007 by chris collman (talk | contribs) (create introduction)

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Variables.

A variable is a piece of data that can be changed and is used by Moodle when it is running. Each variable has a type, and a scope or context in which it is used. Most Moodle variables are now defined through the site or course administration blocks rather than through php files.

In older versions of Moodle the variable name without a description often appeared before a field. Sometimes these variable names are still shown as part of the description in the administrative block pages.

Interface

  • lang - If you wish to change any text on your site, it is recommended that a local language pack is created. Please refer to Language for details
  • timezone - This field is used to set the default timezone used by Moodle. It affects time-related messages on the system such as assignment deadlines. If you have set this and still have time problems, make sure the time is set correctly on the server. Users can also set their timezone, see Edit profile.
  • themelist, allowuserthemes, allowcoursethemes - Please refer to the Theme configuration for details

Operating System

User

Permissions

Miscellaneous

  • debug - Set debug to on in order to get more information about PHP errors. This is often helpful to an administrator when trying to get more information about an error or problem being experienced. Normally, debug is set to off. For more information about debugging in Moodle 1.7 onwards, see Debugging.

See also