Skip to content

Instantly share code, notes, and snippets.

@balintbrews
balintbrews / pltest.module.php
Created December 19, 2011 15:56
Quick test for the plupload module's functionality.
<?php
/**
* @file
* Quick test for the plupload module's functionality.
*/
function pltest_menu() {
$items = array();
@balintbrews
balintbrews / lubas-index-infos.json
Created January 16, 2012 14:20
Lubas Index - information objects in JSON format
{
{
id: "info-uh-lu-ABMA11",
lastEdited: "2012-01-09T21:15:39",
expires: "2015-11-03",
title: {
en: "Archival Science: Physical and Digital Archives",
sv: "Arkivvetenskap: Fysiska och digitala arkiv"
},
identifier: "ABMA11",
@balintbrews
balintbrews / lubas-index-infos.yml
Created January 16, 2012 14:38
Lubas Index - information objects in YAML format
4f0c76c85a20c0f620000f9e:
id: [info-uh-lu-ABMA11]
lastEdited: ['2012-01-09T21:15:39']
expires: ['2015-11-03']
title:
{
en: 'Archival Science: Physical and Digital Archives',
sv: 'Arkivvetenskap: Fysiska och digitala arkiv'
}
identifier: [ABMA11]
@balintbrews
balintbrews / lubas-index-events.yml
Created January 16, 2012 15:11
Lubas Index - event objects in YAML format
4f0c76c85a20c0f620000f9f:
id: [event-uh-lu-ABMA11-71801]
lastEdited: ['2012-01-09T21:15:43']
expires: ['2012-11-29']
formOfEducation-formOfStudy: [normal]
formOfEducation-paceOfStudy-percentage: ['100']
formOfEducation-timeOfStudy: [day]
formOfEducation-instructionLanguages-instructionLanguage: [sv]
startDate-dateExact: ['2012-01-16']
startDate-week: ['201203']
@balintbrews
balintbrews / lubas-index-events.json
Created January 16, 2012 15:18
Lubas Index - event objects in JSON format
{
{
id: "event-uh-lu-ABMA11-71801",
lastEdited: "2012-01-09T21:15:43",
expires: "2012-11-29",
formOfEducation-formOfStudy: "normal",
formOfEducation-paceOfStudy-percentage: "100",
formOfEducation-timeOfStudy: "day",
formOfEducation-instructionLanguages-instructionLanguage: "sv",
startDate-dateExact: "2012-01-16",
diff --git a/handlers/views_handler_argument.inc b/handlers/views_handler_argument.inc
index 3850d0a..6e9646c 100644
--- a/handlers/views_handler_argument.inc
+++ b/handlers/views_handler_argument.inc
@@ -104,6 +104,9 @@ class views_handler_argument extends views_handler {
$this->options['summary_options'] = $options['style_options'];
}
+ if (!empty($options['default_argument_skip_url']) && !isset($options['argument_skip_url'])) {
+ $this->options['argument_skip_url'] = 1;
@balintbrews
balintbrews / 233-ns_core.make.patch
Created May 11, 2012 13:58
[233] ns_core.make changes
diff --git a/ns_core.make b/ns_core.make
index 88bce62..a4dd93b 100644
--- a/ns_core.make
+++ b/ns_core.make
@@ -254,3 +254,6 @@ projects[menu_block][patch][] = http://drupal.org/files/issues/1050766.fixed-par
; http://drupal.org/node/1484352#comment-5816158
projects[flag][patch][] = http://drupal.org/files/1484352-2-flag_validator_blocks_contextual_filters.patch
+
+; http://drupal.org/node/1535802
@balintbrews
balintbrews / basetool_api_request_example.php
Created October 4, 2012 08:30
Example BaseTool API request
<?php
$result = BaseToolAPIRequest::getInstance()
->setResource('Business')
->setEndpointURLPieces(array('sv', '16346'))
->setParameter('WithTree', 'true')
->setParameter('WithRecommended', 'true')
->execute();
@balintbrews
balintbrews / views_minimal_ui.module
Last active December 16, 2015 19:09
Screenshot: http://i.balintk.com/98cb1d9e7092e055.png. Proof of concept for a Drupal module that provides a simplified user interface for editing a specific view. This way customers are able to make small adjustments without having to face the Views UI.
<?php
/**
* @file
* Provides a minimal UI for editing a specific view.
*/
/**
* Implements hook_menu().
*/
@balintbrews
balintbrews / gist:5489170
Last active December 16, 2015 19:59 — forked from colbyr/gist:2155434
cd /usr/local/Library/Formula
git checkout 9e18876 tomcat.rb
brew install tomcat
git checkout HEAD