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

Contents of /contributions/modules/accordian_blocks/accordian_blocks.module

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


Revision 1.1 - (show annotations) (download) (as text)
Sat Jun 13 11:05:26 2009 UTC (5 months, 2 weeks ago) by prajwala
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Initial commit of accordian_blocks module
1 <?php
2 // $Id$
3 /*
4 *@file
5 * This module privide the accordian widget for the blocks on left and right side
6 */
7
8 /*
9 * Implementation of hook_init()
10 */
11 function accordian_blocks_init() {
12 // including accordian related javascript and css files
13 jquery_ui_add('ui.accordion');
14 drupal_add_js(drupal_get_path('module', 'accordian_blocks') .'/accordian_init.js');
15 drupal_add_css(drupal_get_path('module', 'accordian_blocks') .'/accordian_init.css');
16 }
17
18 /*
19 * Implementation of hook_theme_registry_alter()
20 */
21 function accordian_blocks_theme_registry_alter(&$theme_registry) {
22 // using our own block.tpl.php file.
23 $theme_registry['block']['template'] = 'block';
24 $theme_registry['block']['path'] = drupal_get_path('module', 'accordian_blocks');
25 $theme_registry['block']['type'] = 'module';
26 }

  ViewVC Help
Powered by ViewVC 1.1.2