Permalink
Browse files

feature done

  • Loading branch information...
1 parent 918f35d commit f3bad036c8c4a1011a2a9b200b3ed4ef4a2d0a0c @barraponto committed Jan 20, 2011
Showing with 865 additions and 1 deletion.
  1. +102 −0 thacker_event.context.inc
  2. +4 −1 thacker_event.features.inc
  3. +6 −0 thacker_event.info
  4. +753 −0 thacker_event.views_default.inc
View
@@ -0,0 +1,102 @@
+<?php
+
+/**
+ * Implementation of hook_context_default_contexts().
+ */
+function thacker_event_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 = 'event';
+ $context->description = 'The Thacker.com.br Events and Calendar overview';
+ $context->tag = 'section';
+ $context->conditions = array(
+ 'views' => array(
+ 'values' => array(
+ 'dt_event_page' => 'dt_event_page',
+ ),
+ ),
+ );
+ $context->reactions = array(
+ 'block' => array(
+ 'blocks' => array(
+ 'thacker_event-0' => array(
+ 'module' => 'thacker_event',
+ 'delta' => 0,
+ 'region' => 'sidebar_last',
+ 'weight' => 0,
+ ),
+ 'views--exp-dt_event_page-page_1' => array(
+ 'module' => 'views',
+ 'delta' => '-exp-dt_event_page-page_1',
+ 'region' => 'preface_top',
+ 'weight' => 0,
+ ),
+ ),
+ ),
+ );
+ $context->condition_mode = 0;
+
+ // Translatables
+ // Included for use with string extractors like potx.
+ t('The Thacker.com.br Events and Calendar overview');
+ t('section');
+
+ $export['event'] = $context;
+ $context = new stdClass;
+ $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
+ $context->api_version = 3;
+ $context->name = 'event_node';
+ $context->description = 'Event node view';
+ $context->tag = 'node';
+ $context->conditions = array(
+ 'node' => array(
+ 'values' => array(
+ 'dt_event' => 'dt_event',
+ ),
+ 'options' => array(
+ 'node_form' => '0',
+ ),
+ ),
+ );
+ $context->reactions = array(
+ 'block' => array(
+ 'blocks' => array(
+ 'views-dt_event_signup_block-block' => array(
+ 'module' => 'views',
+ 'delta' => 'dt_event_signup_block-block',
+ 'region' => 'sidebar_last',
+ 'weight' => 0,
+ ),
+ 'views-dt_event_signup_block-block_1' => array(
+ 'module' => 'views',
+ 'delta' => 'dt_event_signup_block-block_1',
+ 'region' => 'sidebar_last',
+ 'weight' => 1,
+ ),
+ 'views-dt_project_skills-block_1' => array(
+ 'module' => 'views',
+ 'delta' => 'dt_project_skills-block_1',
+ 'region' => 'sidebar_last',
+ 'weight' => 2,
+ ),
+ 'views-dt_event_promo-block_1' => array(
+ 'module' => 'views',
+ 'delta' => 'dt_event_promo-block_1',
+ 'region' => 'preface_top',
+ 'weight' => 0,
+ ),
+ ),
+ ),
+ );
+ $context->condition_mode = 0;
+
+ // Translatables
+ // Included for use with string extractors like potx.
+ t('Event node view');
+ t('node');
+
+ $export['event_node'] = $context;
+ return $export;
+}
@@ -5,7 +5,10 @@
*/
function thacker_event_ctools_plugin_api() {
list($module, $api) = func_get_args();
- if ($module == "strongarm" && $api == "strongarm") {
+ if ($module == "context" && $api == "context") {
+ return array("version" => 3);
+ }
+ elseif ($module == "strongarm" && $api == "strongarm") {
return array("version" => 1);
}
}
View
@@ -9,12 +9,16 @@ dependencies[] = "postal_field"
dependencies[] = "semanticviews"
dependencies[] = "signup"
dependencies[] = "strongarm"
+dependencies[] = "thacker_project"
description = "Thacker.com.br Event feature"
features[content][] = "dt_event-field_event_address"
features[content][] = "dt_event-field_event_date"
features[content][] = "dt_event-field_event_geocode"
features[content][] = "dt_event-field_event_links"
features[content][] = "dt_event-field_promotional"
+features[context][] = "event"
+features[context][] = "event_node"
+features[ctools][] = "context:context:3"
features[ctools][] = "strongarm:strongarm:1"
features[node][] = "dt_event"
features[variable][] = "comment_anonymous_dt_event"
@@ -29,7 +33,9 @@ features[variable][] = "comment_subject_field_dt_event"
features[variable][] = "node_options_dt_event"
features[variable][] = "signup_date_field_dt_event"
features[variable][] = "signup_node_default_state_dt_event"
+features[views][] = "dt_event_page"
features[views][] = "dt_event_promo"
+features[views][] = "dt_event_signup_block"
features[views_api][] = "api:2"
name = "Thacker Event"
package = "Thacker"
Oops, something went wrong.

0 comments on commit f3bad03

Please sign in to comment.