<?php
/**
 * @file
 * diy_guidebook.context.inc
 */

/**
 * Implements hook_context_default_contexts().
 */
function diy_guidebook_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 = 'guidebook_channel';
  $context->description = '';
  $context->tag = 'Guidebook';
  $context->conditions = array(
    'views' => array(
      'values' => array(
        'guidebook_channel' => 'guidebook_channel',
        'guidebook_channel:page' => 'guidebook_channel:page',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'diy_structure-diy_structure_channel_top' => array(
          'module' => 'diy_structure',
          'delta' => 'diy_structure_channel_top',
          'region' => 'precontent_first',
          'weight' => '-10',
        ),
        'views--exp-guidebook_channel-page' => array(
          'module' => 'views',
          'delta' => '-exp-guidebook_channel-page',
          'region' => 'precontent_first',
          'weight' => '-9',
        ),
        'views-latest_articles-block' => array(
          'module' => 'views',
          'delta' => 'latest_articles-block',
          'region' => 'prepostcontent_first',
          'weight' => '-10',
        ),
        'views-sidebar_videos-block' => array(
          'module' => 'views',
          'delta' => 'sidebar_videos-block',
          'region' => 'prepostcontent_third',
          'weight' => '-10',
        ),
        'diy_structure-diy_structure_channel_bottom' => array(
          'module' => 'diy_structure',
          'delta' => 'diy_structure_channel_bottom',
          'region' => 'prefooter_first',
          'weight' => '-10',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Guidebook');
  $export['guidebook_channel'] = $context;

  $context = new stdClass();
  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
  $context->name = 'topic_page';
  $context->description = '';
  $context->tag = 'Guidebook';
  $context->conditions = array(
    'node' => array(
      'values' => array(
        'topic' => 'topic',
      ),
      'options' => array(
        'node_form' => '1',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'diy_structure-diy_structure_header_icon_detail' => array(
          'module' => 'diy_structure',
          'delta' => 'diy_structure_header_icon_detail',
          'region' => 'postheader',
          'weight' => '-9',
        ),
        'diy_structure-diy_structure_channel_top' => array(
          'module' => 'diy_structure',
          'delta' => 'diy_structure_channel_top',
          'region' => 'precontent_first',
          'weight' => '-10',
        ),
        'diy_structure-diy_structure_channel_bottom' => array(
          'module' => 'diy_structure',
          'delta' => 'diy_structure_channel_bottom',
          'region' => 'prepostcontent_first',
          'weight' => '-10',
        ),
        'diy_guidebook-diy_guidebook_tools_materials' => array(
          'module' => 'diy_guidebook',
          'delta' => 'diy_guidebook_tools_materials',
          'region' => 'postcontent_first',
          'weight' => '-10',
        ),
        'diy_guidebook-diy_guidebook_tools_article' => array(
          'module' => 'diy_guidebook',
          'delta' => 'diy_guidebook_tools_article',
          'region' => 'prefooter_first',
          'weight' => '-10',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Guidebook');
  $export['topic_page'] = $context;

  return $export;
}
