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 | |
* Create a CSV file with fields for every Drupal 7 entity type / bundle. | |
* | |
* When preparing for a Drupal 7 to Drupal 8/9 migration it can be helpful to | |
* perform some initial content analysis. This script creates CSV files that | |
* can be imported into Google Sheets etc. to help with this analysis. | |
* |
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 | |
/* | |
* Add level indicator css class to all menu items and menu links. | |
*/ | |
function THEME_menu_link(array $variables) { | |
$element = $variables['element']; | |
$sub_menu = ''; | |
$element['#attributes']['class'][] = 'menu-item menu-item--level' . $element['#original_link']['depth']; |
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 | |
/** | |
* Defines a style plugin | |
* | |
* - panesandblocks: corresponds to directory name of plugin | |
* - render pane: the suffix of the theme function for the pane (without "theme_"). | |
* - Example: If the function name is "theme_panesandblocks_render_pane", | |
* the value of "render pane" is "panesandblocks_render_pane". | |
* - render region: the suffix of the theme function for the region (without "theme_"). | |
* - Example: If the function name is "theme_panesandblocks_render_region", |