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($) { | |
/** | |
* For this approach to work we need our click handler to trigger before | |
* the CTools modal handler. This is currently handled by setting the weight | |
* when including this file. | |
*/ | |
Drupal.behaviors.setCtoolsModalSize = { | |
attach: function(context, settings) { | |
$('a.ctools-use-modal').once('modal-size', function() { | |
$(this).click(function() { |
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 modulename.module | |
*/ | |
/** | |
* Implements hook_menu() | |
*/ | |
function modulename_menu() { | |
// Special item to use as path for menu items that shouldn't link. |
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 | |
/** | |
* Configuration for the mealplan specific vocabularies | |
*/ | |
function fdb_platform_mealplan_vocabularies() { | |
// Configuration for the mealplan specific vocabularies | |
$vocabularies = array(); | |
$vocabularies['meal_type'] = array('name' => t('Måltidstype'), |
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 mymodule_form_alter(&$form, &$form_state, $form_id) { | |
if (strpos($form_id, 'webform_client_form') === 0) { | |
//Do stuff | |
} | |
} |
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
<script type="text/javascript"> | |
//<![CDATA[ | |
var _tag=new WebTrends(); | |
_tag.fpcdom = ".billundbib.dk"; //<-- Hostnavn for det enkelte biblioteksite | |
_tag.dcsid = "dcst7m99iu3uwyezcx7vn3ajc_2z5j"; //<-- Trackingkode for det enkelte bibliotek | |
_tag.dcsGetId(); | |
//]]> | |
</script> | |
<script type="text/javascript"> | |
//<![CDATA[ |
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
$date = date_make_date($value[$v], $value['timezone_db']); | |
if ($date) { | |
date_timezone_set($date, timezone_open($value['timezone'])); | |
//If the time is not midnight (0:00) when use medium format containing hours and minutes | |
$format = (intval(date_format_date($date, 'custom', 'Gi')) > 0) ? 'medium' : 'small'; | |
$date_values[] = date_format_date($date, $format); | |
} |
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 | |
// $Id$ | |
/** | |
* @file | |
* template includes + preprocess | |
*/ | |
// Auto-rebuild the theme registry during theme development. | |
if (theme_get_setting('mothership_rebuild_registry')) { | |
drupal_rebuild_theme_registry(); |
NewerOlder