You are here

panels_accordion.module in Panels Accordion 7

Same filename and directory in other branches
  1. 5 panels_accordion.module
  2. 6 panels_accordion.module

Adds a panel pane style for accordion.

File

panels_accordion.module
View source
<?php

/**
 * @file
 * Adds a panel pane style for accordion.
 */

/*
 * Implements hook_ctools_plugin_directory().
 */
function panels_accordion_ctools_plugin_directory($module, $plugin) {
  if (($module == 'panels' || $module == 'ctools') && $plugin == 'styles') {
    return 'plugins/' . $plugin;
  }
}

/**
 * Implements hook_theme()
 */
function panels_accordion_theme() {
  return array(
    'panels_accordion_region' => array(
      'variables' => array(
        'handle' => NULL,
        'content' => NULL,
        'collapsed' => FALSE,
      ),
      'file' => 'plugins/styles/accordion.inc',
    ),
    'panels_accordion_pane' => array(
      'variables' => array(
        'handle' => NULL,
        'content' => NULL,
        'collapsed' => FALSE,
      ),
      'file' => 'plugins/styles/accordion.inc',
    ),
  );
}