You are here

function constant_contact_intro in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 admin.system.inc \constant_contact_intro()
  2. 6.2 system.admin.inc \constant_contact_intro()

Displays the module intro page.

1 string reference to 'constant_contact_intro'
constant_contact_menu in ./constant_contact.module
Implements hook_menu().

File

./admin.system.inc, line 11
Main admin functions.

Code

function constant_contact_intro() {
  $info_filename = drupal_get_path('module', 'constant_contact') . '/' . 'constant_contact' . '.info';
  $module = drupal_parse_info_file($info_filename);
  $html = '';

  // Display a message about the webform CC module.
  if (module_exists('webform') and !module_exists('webform_constant_contact')) {
    $html = t('<p><span style="color:green; font-weight:bold; font-size:1em;">Did you know you can integrate webform with the constant contact module? - <a href="http://drupal.org/project/webform_constant_contact">To find out more click here</a></span></p>');
  }
  $html .= '<p>This is version ' . $module['version'] . ' of the Constant Contact module for Drupal.</p>';
  $html .= '<p>If you do not have a constant contact account <a target="_blank" href="@cc">Signup for a free 60-day trial</a>.</p>';
  $html .= '<p>Instructions for setting up the module can be found <a href="@instructions">here</a>.</p>';
  $html .= '<p>If you find any problems or need help see <a href="@help">here</a>.</p>';
  $params = array(
    '@instructions' => url('admin/help/constant_contact'),
    '@help' => 'http://drupal.org/project/issues/constant_contact?categories=All',
    '@cc' => CC_TRIAL_URL,
  );
  return t($html, $params);
}