-
Notifications
You must be signed in to change notification settings - Fork 0
/
luggage_story.features.inc
63 lines (57 loc) · 1.26 KB
/
luggage_story.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
<?php
/**
* @file
* luggage_story.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function luggage_story_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function luggage_story_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_image_default_styles().
*/
function luggage_story_image_default_styles() {
$styles = array();
// Exported image style: story_thumbnail.
$styles['story_thumbnail'] = array(
'label' => 'Story Thumbnail (640x500)',
'effects' => array(
2 => array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 640,
'height' => 500,
),
'weight' => 1,
),
),
);
return $styles;
}
/**
* Implements hook_node_info().
*/
function luggage_story_node_info() {
$items = array(
'story' => array(
'name' => t('Feature Story'),
'base' => 'node_content',
'description' => t('A feature or promotional story.'),
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
),
);
drupal_alter('node_info', $items);
return $items;
}