Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Added panel and views which are part of topics/boundaries. #2

Open
wants to merge 2 commits into
base: 7.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dkan_featured_topics.features.field_base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ function dkan_featured_topics_field_default_field_bases() {
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_topic',
'foreign keys' => array(
'tid' => array(
'columns' => array(
'tid' => 'tid',
),
'table' => 'taxonomy_term_data',
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
Expand Down
31 changes: 31 additions & 0 deletions dkan_featured_topics.features.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
* dkan_featured_topics.features.inc
*/

/**
* Implements hook_ctools_plugin_api().
*/
function dkan_featured_topics_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "page_manager" && $api == "pages_default") {
return array("version" => "1");
}
}

/**
* Implements hook_views_api().
*/
Expand All @@ -22,6 +31,13 @@ function dkan_featured_topics_image_default_styles() {
'label' => 'Topic Medium',
'effects' => array(
4 => array(
'label' => 'Scale',
'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
'effect callback' => 'image_scale_effect',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => 200,
Expand All @@ -31,6 +47,13 @@ function dkan_featured_topics_image_default_styles() {
'weight' => 1,
),
5 => array(
'label' => 'Define canvas',
'help' => 'Define the size of the working canvas and background color, this controls the dimensions of the output image.',
'effect callback' => 'canvasactions_definecanvas_effect',
'dimensions callback' => 'canvasactions_definecanvas_dimensions',
'form callback' => 'canvasactions_definecanvas_form',
'summary theme' => 'canvasactions_definecanvas_summary',
'module' => 'imagecache_canvasactions',
'name' => 'canvasactions_definecanvas',
'data' => array(
'RGB' => array(
Expand All @@ -53,6 +76,13 @@ function dkan_featured_topics_image_default_styles() {
'weight' => 2,
),
6 => array(
'label' => 'Crop',
'help' => 'Cropping will remove portions of an image to make it the specified dimensions.',
'effect callback' => 'image_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_crop_form',
'summary theme' => 'image_crop_summary',
'module' => 'image',
'name' => 'image_crop',
'data' => array(
'width' => 200,
Expand All @@ -62,6 +92,7 @@ function dkan_featured_topics_image_default_styles() {
'weight' => 3,
),
),
'name' => 'topic_medium',
);

return $styles;
Expand Down
10 changes: 9 additions & 1 deletion dkan_featured_topics.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ core = 7.x
package = DKAN Features
dependencies[] = dkan_dataset_content_types
dependencies[] = dkan_dataset_groups
dependencies[] = entity
dependencies[] = features
dependencies[] = image
dependencies[] = options
dependencies[] = page_manager
dependencies[] = taxonomy
dependencies[] = views
dependencies[] = views_content
dependencies[] = views_responsive_grid
features[ctools][] = page_manager:pages_default:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_topic
features[field_instance][] = node-dataset-field_topic
features[field_instance][] = taxonomy_term-dkan_topics_term-field_image
features[image][] = topic_medium
features[page_manager_handlers][] = term_view__panel_context_1453921e-7650-41e7-8b18-017f15b96d08
features[page_manager_handlers][] = term_view__panel_context_ad48ba98-002b-4cf0-9ae8-2d7a4b0eb051
features[taxonomy][] = dkan_topics_term
features[views_view][] = dkan_topics_block
features[views_view][] = dkan_topics_datataset_view
features[views_view][] = dkan_topics_featured
features_exclude[dependencies][ctools] = ctools
project path = profiles/dkan/modules/dkan/dkan_dataset/modules
mtime = 1442244069
project path = sites/all/modules/contrib
Loading