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

Contents of /contributions/modules/accordion_blocks/accordion_blocks.module

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Jun 15 06:26:31 2009 UTC (5 months, 1 week ago) by prajwala
Branch: MAIN
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Initial commit of the accordion blocks module
1 <?php
2 // $Id$
3 /*
4 *@file
5 * This module privide the accordion widget for the blocks on left and right side
6 */
7
8 /*
9 * Implementation of hook_init()
10 */
11 function accordion_blocks_init() {
12 // including accordion related javascript and css files
13 jquery_ui_add('ui.accordion');
14 drupal_add_js(drupal_get_path('module', 'accordion_blocks') .'/accordion_init.js');
15 drupal_add_css(drupal_get_path('module', 'accordion_blocks') .'/accordion_init.css');
16 }
17
18 /*
19 * Implementation of hook_theme_registry_alter()
20 */
21 function accordion_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', 'accordion_blocks');
25 $theme_registry['block']['type'] = 'module';
26 }

  ViewVC Help
Powered by ViewVC 1.1.2