You are here

context_omega_test.context.inc in Context omega 7

Contains all the context exports.

File

tests/context_omega_test/context_omega_test.context.inc
View source
<?php

/**
 * @file
 * Contains all the context exports.
 */

/**
 * Implements hook_context_default_contexts().
 */
function context_omega_test_context_default_contexts() {
  $export = array();
  $context = new stdClass();
  $context->disabled = FALSE;

  /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
  $context->name = 'context_omega_test';
  $context->description = 'Omega test';
  $context->tag = 'context_omega_test';
  $context->conditions = array(
    'path' => array(
      'values' => array(
        'custom-omega-test' => 'custom-omega-test',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'context_omega_test-custom_block' => array(
          'module' => 'context_omega_test',
          'delta' => 'custom_block',
          'region' => 'content',
          'weight' => '-10',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;
  $export[$context->name] = $context;
  return $export;
}

Functions

Namesort descending Description
context_omega_test_context_default_contexts Implements hook_context_default_contexts().