You are here

function contextphp_context_registry in Context PHP 7

Same name and namespace in other branches
  1. 6 contextphp.module \contextphp_context_registry()

Implementation of hook_context_registry().

File

./contextphp.module, line 32

Code

function contextphp_context_registry() {
  return array(
    'conditions' => array(
      'php' => array(
        'title' => t('PHP code'),
        'description' => t('Set this context when PHP code returns TRUE.'),
        'plugin' => 'contextphp_condition_php',
      ),
    ),
    'reactions' => array(
      'php' => array(
        'title' => t('PHP code'),
        'description' => t('React with the PHP code.'),
        'plugin' => 'contextphp_reaction_php',
      ),
    ),
  );
}