Fieldmanager
  • Package
  • Function
  • Tree
  • Todo

Packages

  • Fieldmanager
    • Context
    • Datasource
    • Field
    • Util
  • None

Exceptions

  • FM_Class_Not_Found_Exception
  • FM_Developer_Exception
  • FM_Duplicate_Submenu_Name_Exception
  • FM_Exception
  • FM_Submenu_Not_Initialized_Exception
  • FM_Validation_Exception

Functions

  • _fieldmanager_registry
  • _fm_add_submenus
  • _fm_submenu_render
  • fieldmanager_enqueue_scripts
  • fieldmanager_get_baseurl
  • fieldmanager_get_template
  • fieldmanager_load_class
  • fieldmanager_load_file
  • fieldmanager_set_baseurl
  • fm_add_script
  • fm_add_style
  • fm_calculate_context
  • fm_get_context
  • fm_match_context
  • fm_register_submenu_page
  • fm_sanitize_textarea
  • fm_trigger_context_action

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

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.
Fieldmanager API documentation generated by ApiGen 2.8.0