Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have this working but when I click on the help icon it does not open it in a popup window.
function better_ui_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'blog_node_form':
$output = theme('advanced_help_topic', array(
'module' => 'better_ui',
'topic' => 'hr-help',
));
$form['title']['#title'] .= $output;
break;
}
}
I know my setup can handle popups because if I use this straight code the popup appears:
$form['field_show_sidebar_2nd'][und]['#description'] =
' <a href="/help/better_ui/show-sidebar?popup=1"
class="better-ui-help advanced-help-link"
onclick="var w=window.open(this.href, 'advanced_help_window',
'width=500,height=500,scrollbars,resizable');
w.focus(); return false;" title="Show Sidebar"><span> <br>
Help</span></a></div> ';
Any thoughts? Thanks.
Comments
Comment #1
gettysburger CreditAttribution: gettysburger commentedComment #2
gettysburger CreditAttribution: gettysburger commentedComment #3
gisleMade code block human readable.
Comment #4
gisleUnable to reproduce. It is 4 years ago, and no follow up so I am closing as outdated.