Skip to content

Instantly share code, notes, and snippets.

@recidive
Created April 19, 2012 03:05
Show Gist options
  • Save recidive/2418106 to your computer and use it in GitHub Desktop.
Save recidive/2418106 to your computer and use it in GitHub Desktop.
<?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