| 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 |
}
|