Skip to content

Instantly share code, notes, and snippets.

@tommy-thomas
Created August 4, 2015 20:11
Show Gist options
  • Save tommy-thomas/23e189974b119dbde784 to your computer and use it in GitHub Desktop.
Save tommy-thomas/23e189974b119dbde784 to your computer and use it in GitHub Desktop.
Update D6 layout plugins for D7, create module .inc w/
<?php
/**
* Implementation of hook_ctools_plugin_api().
*
* Inform CTools about version information for various plugins implemented by
* Panels.
*
* @param string $owner
* The system name of the module owning the API about which information is
* being requested.
* @param string $api
* The name of the API about which information is being requested.
*/
function themename_plugins_ctools_plugin_api($owner, $api) {
if ($owner == 'panels' && $api == 'layout') {
return array('version' => 2.0);
}
}
/**
* Implements of hook_ctools_plugin_directory().
*/
function themename_plugins_ctools_plugin_directory($module, $plugin) {
return 'plugins/' . $plugin;
}
name = D7 Plugins
description = Provides CTools plugins for use by ThemeName
core = 7.x
@tommy-thomas
Copy link
Author

The plugin directories with calls to hook_panels_layouts should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment