Permalink
Browse files

Remove Context and Views dependencies.

Displaying the page banner should be in its own separate feature,
especially being implemented with both Context and Views.
  • Loading branch information...
1 parent 19e3db7 commit 94b1af7000a846a2f6aea5983440bdc6aedf0d79 @adamdicarlo adamdicarlo committed Aug 8, 2011
Showing with 0 additions and 187 deletions.
  1. +0 −50 os_base.context.inc
  2. +0 −18 os_base.features.field.inc
  3. +0 −14 os_base.features.inc
  4. +0 −6 os_base.info
  5. +0 −99 os_base.views_default.inc
View
@@ -1,50 +0,0 @@
-<?php
-/**
- * @file
- * os_base.context.inc
- */
-
-/**
- * Implementation of hook_context_default_contexts().
- */
-function os_base_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 = 'header image';
- $context->description = 'Adds header image views block to the header context.';
- $context->tag = 'Basic pages';
- $context->conditions = array(
- 'node' => array(
- 'values' => array(
- 'page' => 'page',
- ),
- 'options' => array(
- 'node_form' => '0',
- ),
- ),
- );
- $context->reactions = array(
- 'block' => array(
- 'blocks' => array(
- 'views-basic_page_banner_image-block' => array(
- 'module' => 'views',
- 'delta' => 'basic_page_banner_image-block',
- 'region' => 'highlighted',
- 'weight' => '-10',
- ),
- ),
- ),
- );
- $context->condition_mode = 0;
-
- // Translatables
- // Included for use with string extractors like potx.
- t('Adds header image views block to the header context.');
- t('Basic pages');
- $export['header image'] = $context;
-
- return $export;
-}
@@ -154,19 +154,10 @@ function os_base_field_default_fields() {
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 0,
- 'colorbox__gallery-thumbnail' => 0,
- 'colorbox__large' => 0,
- 'colorbox__medium' => 0,
- 'colorbox__page-banner' => 0,
- 'colorbox__thumbnail' => 0,
- 'colorbox__visualization' => 0,
'image' => 0,
- 'image_gallery-thumbnail' => 0,
'image_large' => 0,
'image_medium' => 0,
- 'image_page-banner' => 0,
'image_thumbnail' => 0,
- 'image_visualization' => 0,
'link' => 0,
),
'insert_width' => '460',
@@ -249,19 +240,10 @@ function os_base_field_default_fields() {
'insert_default' => 'auto',
'insert_styles' => array(
'auto' => 0,
- 'colorbox__gallery-thumbnail' => 0,
- 'colorbox__large' => 0,
- 'colorbox__medium' => 0,
- 'colorbox__page-banner' => 0,
- 'colorbox__thumbnail' => 0,
- 'colorbox__visualization' => 0,
'image' => 'image',
- 'image_gallery-thumbnail' => 'image_gallery-thumbnail',
'image_large' => 'image_large',
'image_medium' => 'image_medium',
- 'image_page-banner' => 'image_page-banner',
'image_thumbnail' => 0,
- 'image_visualization' => 0,
'link' => 0,
),
'insert_width' => '460',
View
@@ -9,10 +9,6 @@
*/
function os_base_ctools_plugin_api() {
list($module, $api) = func_get_args();
- if ($module == "context" && $api == "context") {
- return array("version" => "3");
- }
- list($module, $api) = func_get_args();
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
@@ -23,16 +19,6 @@ function os_base_ctools_plugin_api() {
}
/**
- * Implementation of hook_views_api().
- */
-function os_base_views_api() {
- list($module, $api) = func_get_args();
- if ($module == "views" && $api == "views_default") {
- return array("version" => "3.0");
- }
-}
-
-/**
* Implementation of hook_node_info().
*/
function os_base_node_info() {
View
@@ -1,17 +1,12 @@
core = "7.x"
-dependencies[] = "context"
dependencies[] = "ctools"
dependencies[] = "features"
dependencies[] = "image"
dependencies[] = "page_manager"
dependencies[] = "strongarm"
-dependencies[] = "views"
description = "Base content types, roles and usability enhancements"
-features[context][] = "header image"
-features[ctools][] = "context:context:3"
features[ctools][] = "page_manager:pages_default:1"
features[ctools][] = "strongarm:strongarm:1"
-features[ctools][] = "views:views_default:3.0"
features[field][] = "node-page-body"
features[field][] = "node-page-field_page_banner"
features[field][] = "node-page-field_page_images"
@@ -33,7 +28,6 @@ features[user_role][] = "site editor"
features[variable][] = "comment_page"
features[variable][] = "node_options_page"
features[variable][] = "pathauto_node_page_pattern"
-features[views_view][] = "basic_page_banner_image"
name = "OpenSourcery base"
package = "Features"
php = "5.2.4"
@@ -1,99 +0,0 @@
-<?php
-/**
- * @file
- * os_base.views_default.inc
- */
-
-/**
- * Implementation of hook_views_default_views().
- */
-function os_base_views_default_views() {
- $export = array();
-
- $view = new view;
- $view->name = 'basic_page_banner_image';
- $view->description = '';
- $view->tag = 'default';
- $view->base_table = 'node';
- $view->human_name = 'Basic Page Banner Image';
- $view->core = 7;
- $view->api_version = '3.0-alpha1';
- $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
-
- /* Display: Master */
- $handler = $view->new_display('default', 'Master', 'default');
- $handler->display->display_options['access']['type'] = 'perm';
- $handler->display->display_options['cache']['type'] = 'none';
- $handler->display->display_options['query']['type'] = 'views_query';
- $handler->display->display_options['query']['options']['query_comment'] = FALSE;
- $handler->display->display_options['exposed_form']['type'] = 'basic';
- $handler->display->display_options['pager']['type'] = 'some';
- $handler->display->display_options['pager']['options']['items_per_page'] = '1';
- $handler->display->display_options['pager']['options']['offset'] = '0';
- $handler->display->display_options['style_plugin'] = 'default';
- $handler->display->display_options['row_plugin'] = 'fields';
- /* Field: Content: Banner image */
- $handler->display->display_options['fields']['field_page_banner']['id'] = 'field_page_banner';
- $handler->display->display_options['fields']['field_page_banner']['table'] = 'field_data_field_page_banner';
- $handler->display->display_options['fields']['field_page_banner']['field'] = 'field_page_banner';
- $handler->display->display_options['fields']['field_page_banner']['label'] = '';
- $handler->display->display_options['fields']['field_page_banner']['alter']['alter_text'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['make_link'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['absolute'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['external'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['replace_spaces'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['nl2br'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['word_boundary'] = 1;
- $handler->display->display_options['fields']['field_page_banner']['alter']['ellipsis'] = 1;
- $handler->display->display_options['fields']['field_page_banner']['alter']['strip_tags'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['trim'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['alter']['html'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['element_label_colon'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['element_default_classes'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['hide_empty'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['empty_zero'] = 0;
- $handler->display->display_options['fields']['field_page_banner']['click_sort_column'] = 'fid';
- $handler->display->display_options['fields']['field_page_banner']['settings'] = array(
- 'image_style' => 'page-banner',
- 'image_link' => '',
- );
- $handler->display->display_options['fields']['field_page_banner']['field_api_classes'] = 0;
- /* Contextual filter: Content: Nid */
- $handler->display->display_options['arguments']['nid']['id'] = 'nid';
- $handler->display->display_options['arguments']['nid']['table'] = 'node';
- $handler->display->display_options['arguments']['nid']['field'] = 'nid';
- $handler->display->display_options['arguments']['nid']['default_action'] = 'default';
- $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
- $handler->display->display_options['arguments']['nid']['default_argument_skip_url'] = 0;
- $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
- $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
- $handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
- $handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
- $handler->display->display_options['arguments']['nid']['validate_options']['types'] = array(
- 'page' => 'page',
- );
- $handler->display->display_options['arguments']['nid']['validate_options']['access'] = 0;
- $handler->display->display_options['arguments']['nid']['break_phrase'] = 0;
- $handler->display->display_options['arguments']['nid']['not'] = 0;
- /* Filter criterion: Content: Published */
- $handler->display->display_options['filters']['status']['id'] = 'status';
- $handler->display->display_options['filters']['status']['table'] = 'node';
- $handler->display->display_options['filters']['status']['field'] = 'status';
- $handler->display->display_options['filters']['status']['value'] = 1;
- $handler->display->display_options['filters']['status']['group'] = 0;
- $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
- /* Filter criterion: Content: Type */
- $handler->display->display_options['filters']['type']['id'] = 'type';
- $handler->display->display_options['filters']['type']['table'] = 'node';
- $handler->display->display_options['filters']['type']['field'] = 'type';
- $handler->display->display_options['filters']['type']['value'] = array(
- 'page' => 'page',
- );
-
- /* Display: Block */
- $handler = $view->new_display('block', 'Block', 'block');
- $export['basic_page_banner_image'] = $view;
-
- return $export;
-}

0 comments on commit 94b1af7

Please sign in to comment.