Condition(s)

fokke - January 27, 2008 - 17:16

Conditions are sets of requirements (e.g. PHP code, current page or site) that make the condition as a whole TRUE or FALSE. Other modules can provide new requirements or use the Condition API to trigger some kind of action (e.g. display a block or switch the theme to Garland) in case a condition is TRUE.

Included requirements

  • PHP code
    TRUE if the evaluated code returns TRUE
  • Pages
    TRUE if the any/all/none of the entered path(s) is/are (like) the current path.
  • Sites
    TRUE if the any/none of the checked multi-site directory(ies) is the current directory.
  • Domains
    TRUE if the any/none of the entered (sub)domain(s) is/are (like) the current domain.

Modules using Condition(s)

Proposals for further usage

  • Add conditions as an extra option for the the blocks hide/show filter.

Releases

Official releasesDateSizeLinksStatus
6.x-2.52008-Apr-1710.92 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-Jun-0813.71 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.