Hi,

Thanks for making a new version for this module, unfortunatly, as you changed the way you displaying the content of the disclaimer, it's not working as I intend to use it.

Let me explain.

I am developping a structure which goal is to manage several websites with one single Drupal installation.

I manage to do it using the Domain module.
For the moment I manage 3 differents websites on one single installation.

As all websites displays adult contents, I need to display a disclaimer.

So I'm using tokens to allow me to customize the disclaimer text depending on the domain name of the current site...

It works as a charm (I currently use the Drupal 6 version of dislaimer module with the patch found in the issue #1245974: Disclaimer doesn't show up which allow it to work on Drupal 7).

but as you published a new dev version especially for D7, I try to move to this new version.
Unfortunatly, it's not working anymore as i would like...

I tested it on each domain :

  • on the settings page, the preview is correctly customized
  • on the front, I always get the disclaimer text customized for the primary domaine (aka defaut domain for "Domain" module).

I was looking into the code, and if i'm right, it's linked to the fact that you changed the method to display the disclaimer.

In disclaimer_init() you add informations in Drupal JS gobal "settings" and I think Drupal don't have yet the information about the current domain name, so it use the primary domain to replace tokens.

So I wonder if it could be possible to change that, in the futur.

Maybe use the previous method on a dedicated page with callback as you did it in the D6 version :

<?php
// Disclaimer no theme page
  $items['disclaimer/print'] = array(
    'page callback' => 'disclaimer_get_content',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
  );
?>

and change the disclaimer_get_content() function in order to directly display disclaimer content.

Sorry it was long, I hope i'm understandable.