You are here

function highcharttable_enable in HighchartTable 7

Implements hook_enable().

File

./highcharttable.install, line 12
highcharttable.install Install and uninstall functions for the HighchartTable module.

Code

function highcharttable_enable() {
  drupal_set_message(st("Thank you for installing HighchartTable. When you have installed the required JS libraries (e.g., through Drush), then all you have to do next is create your <a href='@url'>chart decorations</a>. You can do this by hovering your mouse pointer above any table on your site and clicking the cogwheel.", array(
    '@url' => url('admin/config/content/highcharttable'),
  )));
  $global_settings = array(
    // Set contextual-links to the default, core-style.
    'contextual-links' => '',
    // To have all features use the patched version of jquery.highchartTable.js
    'use-patched-library' => TRUE,
  );
  variable_set('highcharttable_global_settings', $global_settings);
}