Skip to content

Instantly share code, notes, and snippets.

View paulhuisman's full-sized avatar

Paul Huisman paulhuisman

View GitHub Profile
@paulhuisman
paulhuisman / ajax_callback_drupal.php
Last active December 15, 2015 04:49
Ajax Callbacks in Drupal Forms API
<?php
function partners_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) {
if ($entity_type != 'field_collection_item' || $entity->field_name != 'field_partner_products') {
return;
}
$form['#after_build'][] = 'partners_products_after_build';
$id = drupal_html_id('partners_field');
$form['#prefix'] = '<div id="'. $id .'">';
<?php
$query = new EntityFieldQuery();
$entities = $query->entityCondition('entity_type', 'node')
->entityCondition('bundle', array('column','blog'))
->propertyCondition('uid', $user->uid)
->propertyCondition('status', 1)
->propertyOrderBy('created', 'DESC')
->range(0, 3)
->execute();
@paulhuisman
paulhuisman / Solarized - Paul.xml
Created June 28, 2017 07:27
SublimeText Solarized customized theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized - Paul (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@paulhuisman
paulhuisman / README.md
Last active March 3, 2020 14:54
Test voorbeeld van een readme.md

Paul Huisman - XT2 - Challenge 1

Wat wil ik bereiken met het dashboard

<< toelichting wat wil ik bereiken met dashboard hier toevoegen>>

Designkeuzes

<< toelichting designkeuzes hier toevoegen>>

Gebruikte techniek