features_test.features.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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("version" => "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. 'name' => 'features_test',
  29. 'effects' => array(
  30. 2 => array(
  31. 'label' => 'Scale',
  32. 'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
  33. 'effect callback' => 'image_scale_effect',
  34. 'dimensions callback' => 'image_scale_dimensions',
  35. 'form callback' => 'image_scale_form',
  36. 'summary theme' => 'image_scale_summary',
  37. 'module' => 'image',
  38. 'name' => 'image_scale',
  39. 'data' => array(
  40. 'width' => '100',
  41. 'height' => '100',
  42. 'upscale' => 0,
  43. ),
  44. 'weight' => '1',
  45. ),
  46. ),
  47. );
  48. return $styles;
  49. }
  50. /**
  51. * Implements hook_node_info().
  52. */
  53. function features_test_node_info() {
  54. $items = array(
  55. 'features_test' => array(
  56. 'name' => t('Testing: Features'),
  57. 'base' => 'node_content',
  58. 'description' => t('Content type provided for Features tests.'),
  59. 'has_title' => '1',
  60. 'title_label' => t('Title'),
  61. 'help' => '',
  62. ),
  63. );
  64. return $items;
  65. }