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
/** | |
* Gets tomorrow's events and sends along an email agenda. | |
*/ | |
function mailAgenda(){ | |
// Configs. | |
var config = { | |
firstName: 'Brad', | |
email: 'brad@commercialprogression.com', | |
ignoreRecurringEvents: true | |
}; |
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 | |
/** | |
* Implements hook_preprocess_node(). | |
*/ | |
function YOURTHEME_preprocess_node(&$vars) { | |
$entity = $vars['node']; | |
// Change these conditions to suit your use case. | |
if ($entity->bundle() === 'resource' && $entity->hasField('field_remote_video')) { |
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 | |
namespace Drupal\webform_element\Plugin\CustomElement; | |
use Drupal\cohesion_elements\CustomElementPluginBase; | |
use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException; | |
use Drupal\Component\Plugin\Exception\PluginNotFoundException; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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": "guzzlehttp/psr7", | |
"version": "1.8.5", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/guzzle/psr7.git", | |
"reference": "337e3ad8e5716c15f9657bd214d16cc5e69df268" | |
}, | |
"dist": { | |
"type": "zip", |
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
/** | |
* @file | |
* Global utilities. | |
*/ | |
var michiganDesignInit = false; // Global scoped to track attachment just once. | |
(function($, Drupal) { | |
Drupal.behaviors.michigan_design = { | |
attach: function(context, settings) { | |
if (context === document && !michiganDesignInit) { |
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
$view = new view(); | |
$view->name = 'nypl_events_digital_displays'; | |
$view->description = 'Admin listings for events on digital displays'; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Digital Displays'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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
/** | |
* Give external links target="_blank" and rel="noopener" | |
* | |
* @type {NodeListOf<HTMLElementTagNameMap[string]>} | |
*/ | |
const allAnchors = document.querySelectorAll('a'); | |
if (allAnchors.length) { | |
Array.prototype.forEach.call(allAnchors, (thisAnchor) => { | |
if (thisAnchor.href.length | |
&& thisAnchor.hostname !== window.location.hostname |
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
$view = new view(); | |
$view->name = 'd8_migrations'; | |
$view->description = 'Views Data Exports for migrating to Drupal 8'; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'D8 Migrate'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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
diff --git a/tablefield_cellspan/tablefield_cellspan.module b/tablefield_cellspan/tablefield_cellspan.module | |
index 8e343e1..d5b98ec 100644 | |
--- a/tablefield_cellspan/tablefield_cellspan.module | |
+++ b/tablefield_cellspan/tablefield_cellspan.module | |
@@ -21,10 +21,6 @@ function tablefield_cellspan_preprocess_table(&$variables) { | |
foreach ($row['cells'] as $col_key => $cell) { | |
- if (is_array($cell['content']) || is_object($cell['content'])) { | |
- break; |
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
diff --git a/token.tokens.inc b/token.tokens.inc | |
index 3d65d6e..d562559 100644 | |
--- a/token.tokens.inc | |
+++ b/token.tokens.inc | |
@@ -9,83 +9,7 @@ | |
* Implements hook_token_info_alter(). | |
*/ | |
function token_token_info_alter(&$info) { | |
- // Force 'date' type tokens to require input and add a 'current-date' type. | |
- // @todo Remove when http://drupal.org/node/943028 is fixed. |
NewerOlder