Function fm_match_context
Check whether a context is active.
Package: Fieldmanager
See: fm_get_context() for detail about the array values this function tries to match.
Located at fieldmanager.php
See: fm_get_context() for detail about the array values this function tries to match.
Located at fieldmanager.php
Parameters summary
string |
$context |
The Fieldmanager context to check for. |
string|array |
$type = null |
Type or types to check for. Default null. |
Return value summary
boolean
|
True if $context is "form". If $type is null, true if $context matches the first value of fm_get_context(). If $type is a string or array, true if the second value of fm_get_context() matches the string or is in the array and the first value matches $context. False otherwise. |