function paragraphs_theme_registry_alter

Implements hook_theme_registry_alter().

File

paragraphs/paragraphs.module, line 104
Contains paragraphs.module

Code

function paragraphs_theme_registry_alter(&$theme_registry) {

  // Force paragraphs_preprocess_field_multiple_value_form to run last.
  $key = array_search('paragraphs_preprocess_field_multiple_value_form', $theme_registry['field_multiple_value_form']['preprocess functions']);
  unset($theme_registry['field_multiple_value_form']['preprocess functions'][$key]);
  $theme_registry['field_multiple_value_form']['preprocess functions'][] = 'paragraphs_preprocess_field_multiple_value_form';
}