You are here

quote.install in Quote 8.2

Allows users to quote posts or comments.

File

quote.install
View source
<?php

/**
 * @file
 * Allows users to quote posts or comments.
 */

/**
 * Update quote settings data.
 */
function quote_update_8201() {
  $config = \Drupal::configFactory()
    ->getEditable('quote.settings');
  $allow_types = $config
    ->get('quote_allow_types');
  $allow_types = !empty($allow_types) ? $allow_types : [];
  $config
    ->set('quote_allow_types', array_filter($allow_types));
  $config
    ->save();
}

Functions

Namesort descending Description
quote_update_8201 Update quote settings data.