features_test.features.inc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * @file
  4. * features_test.features.inc
  5. */
  6. /**
  7. * Implements hook_ctools_plugin_api().
  8. */
  9. function features_test_ctools_plugin_api() {
  10. list($module, $api) = func_get_args();
  11. if ($module == "strongarm" && $api == "strongarm") {
  12. return array("version" => "1");
  13. }
  14. }
  15. /**
  16. * Implements hook_views_api().
  17. */
  18. function features_test_views_api() {
  19. return array("api" => "3.0");
  20. }
  21. /**
  22. * Implements hook_image_default_styles().
  23. */
  24. function features_test_image_default_styles() {
  25. $styles = array();
  26. // Exported image style: features_test.
  27. $styles['features_test'] = array(
  28. 'effects' => array(
  29. 2 => array(
  30. 'name' => 'image_scale',
  31. 'data' => array(
  32. 'width' => 100,
  33. 'height' => 100,
  34. 'upscale' => 0,
  35. ),
  36. 'weight' => 1,
  37. ),
  38. ),
  39. 'label' => 'features_test',
  40. );
  41. return $styles;
  42. }
  43. /**
  44. * Implements hook_node_info().
  45. */
  46. function features_test_node_info() {
  47. $items = array(
  48. 'features_test' => array(
  49. 'name' => t('Testing: Features'),
  50. 'base' => 'node_content',
  51. 'description' => t('Content type provided for Features tests.'),
  52. 'has_title' => '1',
  53. 'title_label' => t('Title'),
  54. 'help' => '',
  55. ),
  56. );
  57. return $items;
  58. }