summaryrefslogtreecommitdiff
path: root/features/timelinejs_feature/timelinejs_feature.features.inc
blob: d4d1550436a95384291b73936e805c17c30bebc1 (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('Evento'),
      'base' => 'node_content',
      'description' => t('Um evento com data.'),
      'has_title' => '1',
      'title_label' => t('Título'),
      'help' => '',
    ),
    'timeline' => array(
      'name' => t('Linha do tempo'),
      'base' => 'node_content',
      'description' => t('Uma linha do tempo é um conjunto de eventos.'),
      'has_title' => '1',
      'title_label' => t('Título'),
      'help' => '',
    ),
  );
  return $items;
}