You are here

function contextphp_context_registry in Context PHP 6

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

Implementation of hook_context_registry().

File

./contextphp.module, line 6

Code

function contextphp_context_registry() {
  $registry = array();
  $registry['conditions'] = array(
    'php' => array(
      'title' => t('PHP code'),
      'plugin' => 'contextphp_condition_php',
    ),
  );
  $registry['reactions'] = array(
    'php' => array(
      'title' => t('PHP code'),
      'plugin' => 'contextphp_reaction_php',
    ),
  );
  return $registry;
}