Skip to content

Commit

Permalink
Merge pull request #24 from ubc-web-services/develop
Browse files Browse the repository at this point in the history
Remove problematic update hooks
  • Loading branch information
occupant authored Jul 31, 2023
2 parents 4a4f4ad + 3a8e141 commit 90c6f2a
Showing 1 changed file with 3 additions and 50 deletions.
53 changes: 3 additions & 50 deletions ubc_vpr_shared_config/ubc_vpr_shared_config.install
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,6 @@ function ubc_vpr_shared_config_install() {
->set('display.default.display_options.header.area_text_custom.content', '<h3 class="uppercase h4 text-ubc-blue-sea">Announcements</h3>')
->set('display.block_2.display_options.header.area_text_custom.content', '<h3 class="uppercase h4 text-ubc-blue-sea">Announcements</h3>')
->save();
$config->getEditable('filter.format.filtered_text')
->set('filters.editor_button_link_filter.settings', [
'button_link_options' => '|No Style
unit-button|Unit Button
unit-button unit-button--block|Full width Unit Button',
'button_link_size_options' => '|Text Normal
text-xs unit-button--text-xs|Text Extra Small
text-sm unit-button--text-sm|Text Small
text-lg unit-button--text-lg|Text Large
text-xl unit-button--text-xl|Text XLarge
text-2xl unit-button--text-2xl| Text XXLarge',
'button_link_style_options' => '|Default Style
unit-button--light|Light Button
unit-button--dark|Dark Button
unit-button--simple|Simple Button
unit-button--outline|Outline Button
unit-button--transparent|Transparent Button',
])
->save();
$config->getEditable('field.field.paragraph.card_group.field_paragraph_card')
->set('dependencies.config', [
'field.storage.paragraph.field_paragraph_card',
Expand Down Expand Up @@ -237,19 +218,10 @@ function ubc_vpr_shared_config_update_9002() {

/**
* Update button formats.
* REMOVED for D10 module as button link styles no longer used

*/
function ubc_vpr_shared_config_update_9004() {
$config = \Drupal::service('config.factory');
$config->getEditable('filter.format.filtered_text')
->set('filters.editor_button_link_filter.settings', [
'button_link_style_options' => '|Default Style
unit-button--light|Light Button
unit-button--dark|Dark Button
unit-button--simple|Simple Button
unit-button--outline|Outline Button
unit-button--transparent|Transparent Button',
])
->save();
}

/**
Expand Down Expand Up @@ -339,28 +311,9 @@ function ubc_vpr_shared_config_update_9005() {

/**
* Update button formats... again.
* REMOVED for D10 module as button link styles no longer used
*/
function ubc_vpr_shared_config_update_9006() {
$config = \Drupal::service('config.factory');
$config->getEditable('filter.format.filtered_text')
->set('filters.editor_button_link_filter.settings', [
'button_link_options' => '|No Style
unit-button|Unit Button
unit-button unit-button--block|Full width Unit Button',
'button_link_size_options' => '|Text Normal
text-xs unit-button--text-xs|Text Extra Small
text-sm unit-button--text-sm|Text Small
text-lg unit-button--text-lg|Text Large
text-xl unit-button--text-xl|Text XLarge
text-2xl unit-button--text-2xl| Text XXLarge',
'button_link_style_options' => '|Default Style
unit-button--light|Light Button
unit-button--dark|Dark Button
unit-button--simple|Simple Button
unit-button--outline|Outline Button
unit-button--transparent|Transparent Button',
])
->save();
}

/**
Expand Down

0 comments on commit 90c6f2a

Please sign in to comment.