vendor/delahaye/dlh_googlemaps/config/config.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * dlh_googlemaps
  4.  * Extension for Contao Open Source CMS (contao.org)
  5.  *
  6.  * Copyright (c) 2014 de la Haye
  7.  *
  8.  * @package dlh_googlemaps
  9.  * @author  Christian de la Haye
  10.  * @link    http://delahaye.de
  11.  * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
  12.  */
  13. /**
  14.  * Add back end modules
  15.  */
  16. array_insert($GLOBALS['BE_MOD']['content'], sizeof($GLOBALS['BE_MOD']['content']), array('dlh_googlemaps' => array
  17. (
  18.     'tables'      => array('tl_dlh_googlemaps''tl_dlh_googlemaps_elements'),
  19.     'icon'        => 'system/modules/dlh_googlemaps/assets/icon.gif',
  20.     'stylesheet' => 'system/modules/dlh_googlemaps/assets/backend.css',
  21.     'list'          => array('dlhCoordsWizard''importList')
  22. )
  23. ));
  24. /**
  25.  * Add modules
  26.  */
  27. array_insert($GLOBALS['FE_MOD']['miscellaneous'], sizeof($GLOBALS['FE_MOD']['miscellaneous']), array
  28. (
  29.     'dlh_googlemaps' => 'delahaye\googlemaps\ModuleMap'
  30. ));
  31. /**
  32.  * Add content elements
  33.  */
  34. array_insert($GLOBALS['TL_CTE']['media'], sizeof($GLOBALS['TL_CTE']['media']), array
  35. (
  36.     'dlh_googlemaps' => 'delahaye\googlemaps\ContentMap',
  37. ));
  38. /**
  39.  * Backend form fields
  40.  */
  41. $GLOBALS['BE_FFL']['mapSize'] = 'delahaye\googlemaps\MapSizeWidget';
  42. /**
  43.  * Register models
  44.  */
  45. $GLOBALS['TL_MODELS']['tl_dlh_googlemaps']                 = '\\delahaye\\googlemaps\\MapModel';
  46. $GLOBALS['TL_MODELS']['tl_dlh_googlemaps_elements']     = '\\delahaye\\googlemaps\\ElementModel';
  47. /**
  48.  * Add permissions
  49.  */
  50. $GLOBALS['TL_PERMISSIONS'][] = 'dlh_googlemapss';
  51. $GLOBALS['TL_PERMISSIONS'][] = 'dlh_googlemapsp';
  52. /**
  53.  * Refreshing
  54.  */
  55. $GLOBALS['TL_CONFIG']['dlh_googlemaps']['refresh'] = array('toggler''tabs');
  56. /**
  57.  * cookie days
  58.  */
  59. $GLOBALS['TL_CONFIG']['dlh_googlemaps']['cookiedays'] = 365 86400// days * sec/day