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
// Functions for px to em conversions | |
// ------------------------------------------------------------ | |
@function emify($target, $context) { | |
@if $target == 0 { @return 0 } | |
@return $target / $context + 0em; | |
} | |
// Make px to ems using base-font-size | |
// echo as: font-size: em-font(#px); |
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
$data = array( | |
'bundles' => array( | |
'innovation' => (object) array( | |
'type' => 'innovation', | |
'name' => 'Innovation', | |
'base' => 'node_content', | |
'module' => 'node', | |
'description' => '', | |
'help' => '', | |
'has_title' => '1', |
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
update field_data_field_user_about f | |
join profile p on f.entity_id = p.pid | |
join node n on p.uid = n.uid | |
join content_type_profile c on c.nid = n.nid | |
set f.`field_user_about_value` = c.`field_user_about_value` |
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 | |
/** | |
* This is example code for a Drupal 6 to Drupal 7 migration. This won't actually | |
* work without defining the referenced vocabularies, content types, and fields | |
* on each side. | |
*/ | |
/** | |
* Implements hook_flush_caches(). |
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.settings.php | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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.settings.php (Drupal 6.x) | |
* | |
* This settings file is intended to contain settings specific to a local | |
* development environment, by overriding options set in settings.php. | |
* | |
* Include this file from your regular settings.php by including this at the | |
* bottom: |
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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => getenv('DB_NAME'), | |
'username' => getenv('DB_USER'), | |
'password' => getenv('DB_PASS'), |
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 | |
define( 'CIVICRM_UF', 'Drupal' ); | |
define( 'CIVICRM_UF_DSN', 'mysql://' . $_SERVER['DB_USER'] . ':' . $_SERVER['DB_PASS'] . '@' . $_SERVER['DB_HOST'] . '/' . $_SERVER['DB_NAME'] . '?new_link=true'); | |
define( 'CIVICRM_DSN', 'mysql://' . $_SERVER['DB_CIVIUSER'] . ':' . $_SERVER['DB_CIVIPASS'] . '@' . $_SERVER['DB_CIVIHOST'] . '/' . $_SERVER['DB_CIVINAME'] . '?new_link=true' ); | |
define('CIVICRM_LOGGING_DSN', CIVICRM_DSN); | |
global $civicrm_root; | |
$site_root = '/Users/alastair/dev/clients/chagos/httdocs'; |
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
# Ignore system files etc. | |
.DS_Store | |
.htaccess | |
.idea | |
whitefusestub.make | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private |
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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'uat_iapo_drupal', | |
'username' => 'uat_dba', | |
'password' => '3W5LcJQv26DpxGMm', |
OlderNewer