This file contains 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
/** | |
* Implements hook_entity_insert(). | |
*/ | |
function hook_entity_insert($entity, $type) { | |
$bundle = isset($entity->type) ? $entity->type : '*'; | |
// new entity | |
if (isset($entity->is_new) && $entity->is_new) { | |
if (isset($_GET['id']) && is_numeric($_GET['id']) && isset($_GET['type'])) { | |
$target_id = intval($_GET['id']); |
This file contains 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
<div>1</div> | |
<div>2</div> | |
<div>3</div> | |
<div>4</div> | |
<div>5</div> | |
<div>6</div> | |
<div>7</div> | |
<div>8</div> | |
<div>9</div> |