You are here

function _gmap_parse_style in GMap Module 7.2

Same name and namespace in other branches
  1. 5 gmap_parse_macro.inc \_gmap_parse_style()
  2. 6.2 gmap_parse_macro.inc \_gmap_parse_style()
  3. 6 gmap_parse_macro.inc \_gmap_parse_style()
  4. 7 gmap_parse_macro.inc \_gmap_parse_style()

Parse a macro style definition.

Example: #111111/1/100/#111111/1 @internal

Deprecated

use GmapMacroToolbox::getInstance()->setStyle($style)->getParsedStyles()

1 call to _gmap_parse_style()
GmapMacroToolboxTestCase::testGmapMacroToolbox in tests/oopmigration.test

File

./gmap_parse_macro.inc, line 19
GMap macro parsing routines.

Code

function _gmap_parse_style($style) {
  include_once drupal_get_path('module', 'gmap') . '/lib/Drupal/gmap/GmapMacroToolbox.php';
  return GmapMacroToolbox::getInstance()
    ->setStyle($style)
    ->getParsedStyles();
}