Skip to content

Instantly share code, notes, and snippets.

@herbdool
herbdool / pantheon.civicrm.settings.local.php
Created March 4, 2022 20:45
Pantheon settings for CiviCRM
<?php
/**
* CiviCRM Local configuration file.
*/
/**
* 1. After installing CiviCRM place this snippet in civicrm.settings.php,
* just below
* "global $civicrm_root, $civicrm_setting, $civicrm_paths;"
@herbdool
herbdool / convert-d7media2backdrop.php
Last active November 18, 2023 02:26
Convert D7 Media to Backdrop Media
<?php
/**
* Convert d7 media to Backdrop media
*
* bee php-script convert-d7media2backdrop.php
*
* @todo add batching.
*/
@herbdool
herbdool / convert-fc2p.php
Last active October 11, 2023 15:27
Convert Field Collection to Paragraph
<?php
/**
* Convert Field Collection to Paragraphs
*
* bee php-script convert-fc2p.php
*
* @todo add batching.
*
* - Both field_collection and paragraphs need to be enabled.
@herbdool
herbdool / convert-location.php
Last active October 24, 2024 02:06
Convert Location module data to Address, Telephone and Email
<?php
/**
* Convert Location to Address, Telephone and Email
*
* bee php-script convert-location.php
*
* @todo add batching.
*
* - Requires using bee commandline tools in Backdrop: https://github.com/backdrop-contrib/bee
@herbdool
herbdool / convert-media2backdrop.php
Created October 24, 2024 02:00
Convert embedded media (images and video) from Drupal 7 to Backdrop equivalents
<?php
/**
* Convert d7 media to Backdrop media
*
* bee php-script convert-d7media2backdrop.php
*
* Requires video_filter module in Backdrop.
* Will convert from Drupal 7 media module format.
*/
@herbdool
herbdool / utf8mb4_convert.bee.inc
Created October 24, 2024 02:03
utf8mb4 converter
<?php
/**
* @file
* Command(s) for working for converting to utf8mb4.
*/
/**
* Implements hook_bee_command().
*/