You are here

kml.module in KML 7

Same filename and directory in other branches
  1. 8 kml.module
  2. 5 kml.module
  3. 6.2 kml.module
  4. 6 kml.module

KML module.

File

kml.module
View source
<?php

/**
 * @file
 * KML module.
 */

/**
 * Implements hook_views_api().
 */
function kml_views_api() {
  return array(
    'api' => 2,
    'path' => drupal_get_path('module', 'kml') . '/views',
  );
}

/**
 * Implements hook_theme().
 */
function kml_theme() {
  $path = drupal_get_path('module', 'kml');
  return array(
    'kml_placemark' => array(
      'variables' => array(
        'point' => array(),
        'points' => array(),
      ),
      'file' => 'kml_views.theme.inc',
      'template' => 'kml-placemark',
      'path' => $path . "/views",
    ),
    'kml_style' => array(
      'variables' => array(
        'points' => array(),
      ),
      'file' => 'kml_style.theme.inc',
      'template' => 'kml-style',
      'path' => "{$path}/views",
    ),
  );
}

Functions

Namesort descending Description
kml_theme Implements hook_theme().
kml_views_api Implements hook_views_api().