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
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
opcache.enable_cli=0 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=128 | |
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
/* | |
* Varnish 4 example config for Drupal 7 & 8 / Pressflow 6 & 7 | |
*/ | |
# Original source: https://github.com/NITEMAN/varnish-bites/varnish4/drupal-base.vcl | |
# Copyright (c) 2015 Pedro González Serrano and individual contributors. | |
# MIT License | |
# Intended to be used both in simple production environments and with | |
# learning/teaching purposes. |
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
name = Kettering Force Title | |
description = This module is for forcing the admin title on all FPPs that are reusable. | |
package = Kettering | |
core = 7.x | |
version = 7.x-0.1 | |
dependencies[] = fieldable_panels_panes |
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
<?php | |
/** | |
* @file | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of | |
* 'sites/default/settings.php' and uncomment the commented lines that mention | |
* 'settings.local.php'. |
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_form_alter(). | |
*/ | |
function k2m_profiles_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'views_content_views_panes_content_type_edit_form') { | |
if (isset($form['arguments']['field_k2m_profile_classification_target_id'])) { | |
// Grab the taxonomy to make the options win. | |
$vid = taxonomy_vocabulary_machine_name_load('classification')->vid; | |
$terms = taxonomy_get_tree($vid); |
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
john@kalamuna:~/kalabox/apps/d8tester$ kbox terminus cli version | |
PHP Strict Standards: Non-static method Terminus::get_logger() should not be called statically, assuming $this from incompatible context in phar:///usr/local/bin/terminus/php/class-terminus-command.php on line 32 | |
Strict Standards: Non-static method Terminus::get_logger() should not be called statically, assuming $this from incompatible context in phar:///usr/local/bin/terminus/php/class-terminus-command.php on line 32 | |
PHP Strict Standards: Non-static method Terminus::get_outputter() should not be called statically, assuming $this from incompatible context in phar:///usr/local/bin/terminus/php/class-terminus-command.php on line 33 | |
Strict Standards: Non-static method Terminus::get_outputter() should not be called statically, assuming $this from incompatible context in phar:///usr/local/bin/terminus/php/class-terminus-command.php on line 33 | |
Terminus version: 0.8.0 | |
Terminus script: terminus |
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_form_FORMID_alter(). | |
*/ | |
function ccm_publications_form_views_content_views_panes_content_type_edit_form_alter(&$form, &$form_state) { | |
// Change this out to be a select list. | |
if (isset($form['arguments']['field_ccm_publication_type_tid'])) { | |
$v = taxonomy_vocabulary_machine_name_load('ccm_publication_type'); | |
$terms = taxonomy_get_tree($v->vid); | |
foreach ($terms as $term) { | |
$vocab[$term->tid] = $term->name; |
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
debug: EVENTS => Error dispatching event listeners [post-install]. VError: Error running ad hoc container with kalabox/terminus:v0.9.0.: Error: "Processing failed." | |
at Object.<anonymous> (/home/john/kb2/node_modules/kalabox-engine-docker/docker.js:691:13) | |
From previous event: | |
at Object.use (/home/john/kb2/node_modules/kalabox-engine-docker/docker.js:690:11) | |
From previous event: | |
at /home/john/kb2/lib/engine.js:566:29 | |
From previous event: | |
at Object.exports.use (/home/john/kb2/lib/engine.js:565:4) | |
at /home/john/kalabox/apps/pan-tester/plugins/kalabox-plugin-pantheon/lib/client.js:76:29 |
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
Install the page_manager_search && search combine, set it up as you please but use search_combine as default. | |
Create a variant in the site_template for the search, set it to be above the default one. Use a selection for path URL sites/all/* on the string. | |
To render the default search_view as a block use: | |
/** | |
* Implements hook_block_info(). | |
*/ |
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
How to print a Bootstrap Modal (this was for Drupal 7 site as a FYI): | |
Add this to the modal | |
<button type="button" class="btn btn-default print" onClick="window.print();return false">Print</button> | |
Create a JS file and do this: | |
( function($) { | |
$(document).ready(function(){ | |
// Add Print Classes for Modal | |
$('.modal').on('shown.bs.modal',function() { |