function template_preprocess_panopoly_magic_preview in Panopoly 8.2
Same name and namespace in other branches
- 7 modules/panopoly/panopoly_magic/panopoly_magic.module \template_preprocess_panopoly_magic_preview()
Default preprocess hook for panopoly-magic-theme.html.twig template.
File
- modules/
panopoly/ panopoly_magic/ panopoly_magic.module, line 38 - Hook implementations for panopoly_magic.
Code
function template_preprocess_panopoly_magic_preview(&$vars) {
$preview =& $vars['preview'];
$vars['title'] = $preview['#title'];
$vars['add_link'] = $preview['add_link'];
unset($preview['add_link']);
}