Skip to content

Instantly share code, notes, and snippets.

View boolboost's full-sized avatar
🏠
Working from home

boolboost

🏠
Working from home
View GitHub Profile
/**
* 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']);
@boolboost
boolboost / SassMeister-input-HTML.html
Created August 7, 2015 21:24
Generated by SassMeister.com.
<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>