function lightbox2_contact in Lightbox2 7
Same name and namespace in other branches
- 8 lightbox2.module \lightbox2_contact()
- 5.2 lightbox2.module \lightbox2_contact()
- 6 lightbox2.module \lightbox2_contact()
- 7.2 lightbox2.module \lightbox2_contact()
Get the contact form.
1 string reference to 'lightbox2_contact'
- lightbox2_menu in ./
lightbox2.module - Implementation of hook_menu().
File
- ./
lightbox2.module, line 1558 - Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.
Code
function lightbox2_contact() {
if (module_exists('contact') && variable_get('lightbox2_enable_contact', FALSE) && user_access('access site-wide contact form')) {
$path = drupal_get_path('module', 'contact');
include_once $path . '/contact.pages.inc';
print drupal_render(drupal_get_form('contact_site_form'));
// drupal_add_js() with 'inline' didn't seem to work, possibly because this is
// AJAX loaded content.
print '<script type="text/javascript">Drupal.attachBehaviors();</script>';
exit;
}
}