Skip to content

Instantly share code, notes, and snippets.

@mirzu
Last active August 29, 2015 14:04
Show Gist options
  • Save mirzu/b88f79c95dbec5ee5251 to your computer and use it in GitHub Desktop.
Save mirzu/b88f79c95dbec5ee5251 to your computer and use it in GitHub Desktop.
<?php
// ...
$context = array(
'type' => $type,
'profile' => $profile);
$clone_entity = clone $entity;
drupal_alter('pmpapi_push_doc', $doc, $context, $cloned_entity);
return $doc;
//....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment