function lightbox2_contact

cis7 lightbox2.module lightbox2_contact()
cle7 lightbox2.module lightbox2_contact()
elmsmedia7 lightbox2.module lightbox2_contact()
icor7 lightbox2.module lightbox2_contact()
meedjum_blog7 lightbox2.module lightbox2_contact()
mooc7 lightbox2.module lightbox2_contact()

Get the contact form.

1 string reference to 'lightbox2_contact'
lightbox2_menu in sites/all/modules/ulmus/lightbox2/lightbox2.module
Implementation of hook_menu().

File

sites/all/modules/ulmus/lightbox2/lightbox2.module, line 1457
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;
  }
}