openlayers_blocks.module 658 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Bean plugin for showing Openlayers Map.
  5. */
  6. /**
  7. * Implements hook_bean_types_api_info().
  8. */
  9. function openlayers_blocks_bean_types_api_info() {
  10. return array('api' => 4);
  11. }
  12. /**
  13. * Implements hook_bean_types().
  14. */
  15. function openlayers_blocks_bean_types() {
  16. $plugins = array();
  17. $plugin_path = drupal_get_path('module', 'openlayers_blocks') . '/plugins/bean';
  18. $plugins['openlayers_blocks'] = array(
  19. 'label' => t('Openlayers Blocks'),
  20. 'handler' => array(
  21. 'class' => 'OpenlayersBlocksBean',
  22. 'parent' => 'bean',
  23. ),
  24. 'path' => $plugin_path,
  25. 'file' => 'openlayers_blocks.inc',
  26. );
  27. return $plugins;
  28. }