Created
April 19, 2012 03:05
-
-
Save recidive/2418106 to your computer and use it in GitHub Desktop.
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 | |
| /** | |
| * Implements hook_ctools_plugin_post_alter(). | |
| */ | |
| function deploy_plan_ctools_plugin_post_alter(&$plugin, &$info) { | |
| if (!empty($plugin['schema']) && $plugin['schema'] == 'deploy_plans') { | |
| $plugin['export']['save callback'] = 'deploy_plan_save_plan_entity'; | |
| } | |
| } | |
| /** | |
| * CTools save callback for saving our deploy plan entity. | |
| */ | |
| function deploy_plan_save_plan_entity(&$plan) { | |
| dpm($plan); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment