You are here

function gmap_parse_macro in GMap Module 6

Same name and namespace in other branches
  1. 5 gmap.module \gmap_parse_macro()
  2. 6.2 gmap.module \gmap_parse_macro()
  3. 7.2 gmap.module \gmap_parse_macro()
  4. 7 gmap.module \gmap_parse_macro()

Convert a macro string into a GMap array.

Parameters

$instring: Macro to process.

$ver: Version to treat macro as. Set to 1 when processing very old macros, otherwise leave as is.

Return value

A GMap array.

10 calls to gmap_parse_macro()
GMapMacroTest::testEmptyMacro in tests/gmap.test
GMapMacroTest::testMacroBehaviorFlags in tests/gmap.test
GMapMacroTest::testMacroRenamedDirectives in tests/gmap.test
gmap_location_author_block_view in ./gmap_location.module
gmap_location_block_view in ./gmap_location.module

... See full list

File

./gmap.module, line 344
GMap -- Routines to use the Google Maps API in Drupal.

Code

function gmap_parse_macro($instring, $ver = 2) {
  require_once drupal_get_path('module', 'gmap') . '/gmap_parse_macro.inc';
  return _gmap_parse_macro($instring, $ver);
}