You are here

function contextphp_context_plugins in Context PHP 7

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

Implementation of hook_context_plugins().

File

./contextphp.module, line 6

Code

function contextphp_context_plugins() {
  $module_path = drupal_get_path('module', 'contextphp');
  $plugins = array();
  $plugins['contextphp_condition_php'] = array(
    'handler' => array(
      'path' => $module_path . '/plugins',
      'file' => 'contextphp_condition_php.inc',
      'class' => 'contextphp_condition_php',
      'parent' => 'context_condition',
    ),
  );
  $plugins['contextphp_reaction_php'] = array(
    'handler' => array(
      'path' => $module_path . '/plugins',
      'file' => 'contextphp_reaction_php.inc',
      'class' => 'contextphp_reaction_php',
      'parent' => 'context_reaction',
    ),
  );
  return $plugins;
}