Created
August 4, 2015 20:11
-
-
Save tommy-thomas/23e189974b119dbde784 to your computer and use it in GitHub Desktop.
Update D6 layout plugins for D7, create module .inc w/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = D7 Plugins | |
description = Provides CTools plugins for use by ThemeName | |
core = 7.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The plugin directories with calls to hook_panels_layouts should be fine.