This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
dkan_featured_topics.features.inc
90 lines (86 loc) · 2.7 KB
/
dkan_featured_topics.features.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* @file
* dkan_featured_topics.features.inc
*/
/**
* Implements hook_views_api().
*/
function dkan_featured_topics_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function dkan_featured_topics_image_default_styles() {
$styles = array();
// Exported image style: topic_medium.
$styles['topic_medium'] = array(
'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,
'height' => '',
'upscale' => 0,
),
'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(
'HEX' => '#ffffff',
),
'under' => 1,
'exact' => array(
'width' => 200,
'height' => 200,
'xpos' => 'center',
'ypos' => 'center',
),
'relative' => array(
'leftdiff' => '',
'rightdiff' => '',
'topdiff' => '',
'bottomdiff' => '',
),
),
'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,
'height' => 200,
'anchor' => 'center-center',
),
'weight' => 3,
),
),
'name' => 'topic_medium',
);
return $styles;
}