/[drupal]/contributions/modules/christmas_snow/christmas_snow.module
ViewVC logotype

Contents of /contributions/modules/christmas_snow/christmas_snow.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Tue Jul 29 21:05:51 2008 UTC (15 months, 4 weeks ago) by rmiddle
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Changes since 1.3: +1 -1 lines
File MIME type: text/x-php
moved from menu to init.
1 <?php
2 /*
3 * Drupal Module: Christmas Snow
4 * Adds Christmas Snow to your site
5
6 *
7 * @author: introfini <www.josefernandes.pt>
8 */
9
10 function christmas_snow_help($section) {
11 switch ($section) {
12 case 'admin/modules#description':
13 return t('Add Christmas Snow to your site.');
14 case 'admin/settings/christmas_snow':
15 return t('Add Christmas Snow to your site.');
16 }
17 }
18
19 function christmas_snow_init() {
20 $path = drupal_get_path('module', 'christmas_snow');
21 $js = drupal_add_js($path . '/script/snowstorm.js');
22 $data = '<script type="text/javascript">var imagePath = "'.$GLOBALS['base_url'].'/'.$path.'/image/snow/";</script>';
23 drupal_set_html_head($data);
24 }

  ViewVC Help
Powered by ViewVC 1.1.2