summaryrefslogtreecommitdiff
path: root/features/timelinejs_feature/timelinejs_feature.features.inc
blob: 748c3bde2895444cbbfaddd86845d086e6c74e38 (plain)
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
<?php
/**
 * @file
 * timelinejs_feature.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function timelinejs_feature_ctools_plugin_api() {
  list($module, $api) = func_get_args();
  if ($module == "field_group" && $api == "field_group") {
    return array("version" => "1");
  }
  list($module, $api) = func_get_args();
  if ($module == "strongarm" && $api == "strongarm") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_node_info().
 */
function timelinejs_feature_node_info() {
  $items = array(
    'event' => array(
      'name' => t('Event'),
      'base' => 'node_content',
      'description' => t('An event with a date.'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'timeline' => array(
      'name' => t('Timeline'),
      'base' => 'node_content',
      'description' => t('A timeline is a set of events.'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  return $items;
}