-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasc_commerce.features.inc
73 lines (67 loc) · 1.78 KB
/
asc_commerce.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
<?php
/**
* @file
* asc_commerce.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function asc_commerce_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "ds" && $api == "ds") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function asc_commerce_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function asc_commerce_image_default_styles() {
$styles = array();
// Exported image style: product-display-250-wide.
$styles['product-display-250-wide'] = array(
'name' => 'product-display-250-wide',
'effects' => array(
1 => 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' => 250,
'height' => '',
'upscale' => 0,
),
'weight' => 1,
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function asc_commerce_node_info() {
$items = array(
'product_display' => array(
'name' => t('Product Display'),
'base' => 'node_content',
'description' => t('Content to be used for displaying items to be sold.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
return $items;
}