You are here

function multiversion_element_info_alter in Multiversion 8

Implements hook_element_info_alter().

File

./multiversion.module, line 472

Code

function multiversion_element_info_alter(array &$types) {
  foreach ($types as &$type) {
    if (!isset($type['#pre_render'])) {
      $type['#pre_render'] = [];
    }
    $type['#pre_render'][] = 'multiversion_element_pre_render';
  }
}