You are here

function constant_contact_intro in Constant Contact 6.2

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

Displays the module intro page in the admin settings page

1 string reference to 'constant_contact_intro'
constant_contact_menu in ./constant_contact.module
Adds an admin menu for the Cnstant Contact module

File

./system.admin.inc, line 9

Code

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

  // not sure translation will work here :(
  $html = '<p>This is version ' . $module['version'] . ' of the Constant Contact module for Drupal.</p>';
  $html .= '<p>Instructions for setting up the module can be found <a href="@instructions">here</a>.</p>';
  $params = array(
    '@instructions' => url('admin/help/constant_contact'),
  );
  return t($html, $params);
}