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
function THEMENAME_js_alter(&$javascript) { | |
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'THEMENAME') . | |
'/javascripts/jquery-1.7.2.min.js'; | |
$javascript['misc/jquery.js']['version'] = '1.7.2'; | |
} |
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
$('area.ctools-use-modal, a.ctools-use-modal').each( function() { | |
var $this = $(this); | |
$this.unbind(); // Note the unbind: Otherwise there are multiple bind events which causes issues | |
$this.click(Drupal.CTools.Modal.clickAjaxLink); | |
// Create a drupal ajax object | |
var element_settings = {}; | |
if ($this.attr('href')) { | |
element_settings.url = $this.attr('href'); | |
element_settings.event = 'click'; | |
element_settings.progress = { |
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
Drupal.behaviors.toggle = function(context) { | |
/*Add your js code here*/ | |
$('#day').hide(); | |
$("#show-example").click(function () { | |
if ($('#day').is(":visible")) { | |
$(this).html($(this).html().replace(/Hide/, 'Show')); | |
} else { | |
$(this).html($(this).html().replace(/Show/, 'Hide')); | |
} |
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
drush pm-update projects drupal-6.28 | |
from https://www.drupal.org/node/1861436> |
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
html { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
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
p:first-letter{ | |
display:block; | |
margin:5px 0 0 5px; | |
float:left; | |
color:#FF3366; | |
font-size:60px; | |
font-family:Georgia; | |
} |
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
DELETE FROM `node_revisions` WHERE node_revisions.vid NOT IN (SELECT node.vid FROM `node` ); |
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 echo views_embed_view('view-machine-name', $display_id = 'view-id'); ?> |
OlderNewer