Skip to content

Instantly share code, notes, and snippets.

@fmitchell
Created December 6, 2011 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmitchell/1438775 to your computer and use it in GitHub Desktop.
Save fmitchell/1438775 to your computer and use it in GitHub Desktop.
$machine_type = variable_get('state_flow_' . $node->type, 'state_flow');
$module = 'state_flow';
//allow other modules to invoke other plugins
drupal_alter('state_flow_plugin', array('machine_type' => $machine_type, 'module' => $module));
$plugin = ctools_get_plugins($module, 'plugins', $machine_type);
@indytechcook
Copy link

$alter_me = array('machine_type' => $machine_type, 'module' => $module));
drupal_alter('state_flow_plugin', $alter_me);

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