clameurs.features.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * @file
  4. * clameurs.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function clameurs_ctools_plugin_api($module = NULL, $api = NULL) {
  10. if ($module == "field_group" && $api == "field_group") {
  11. return array("version" => "1");
  12. }
  13. if ($module == "strongarm" && $api == "strongarm") {
  14. return array("version" => "1");
  15. }
  16. }
  17. /**
  18. * Implements hook_node_info().
  19. */
  20. function clameurs_node_info() {
  21. $items = array(
  22. 'documentair' => array(
  23. 'name' => t('Documentair'),
  24. 'base' => 'node_content',
  25. 'description' => '',
  26. 'has_title' => '1',
  27. 'title_label' => t('Titre'),
  28. 'help' => '',
  29. ),
  30. 'episode' => array(
  31. 'name' => t('Épisode'),
  32. 'base' => 'node_content',
  33. 'description' => '',
  34. 'has_title' => '1',
  35. 'title_label' => t('Titre'),
  36. 'help' => '',
  37. ),
  38. 'thematique' => array(
  39. 'name' => t('Thematique'),
  40. 'base' => 'node_content',
  41. 'description' => '',
  42. 'has_title' => '1',
  43. 'title_label' => t('Titre'),
  44. 'help' => '',
  45. ),
  46. );
  47. drupal_alter('node_info', $items);
  48. return $items;
  49. }