function webform_share_page_top in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_share/webform_share.module \webform_share_page_top()
Implements hook_page_top().
File
- modules/
webform_share/ webform_share.module, line 158 - Allows webforms to be shared on other websites using an iframe.
Code
function webform_share_page_top(array &$page_top) {
if (!WebformShareHelper::isPage()) {
return;
}
// Remove the toolbar from the webform share page.
unset($page_top['toolbar']);
}