You are here

function views_gantt_enable in Views Gantt 7

Same name and namespace in other branches
  1. 7.2 views_gantt.install \views_gantt_enable()

Implements hook_enable().

File

./views_gantt.install, line 45
Install, update and uninstall functions for the views_gantt module.

Code

function views_gantt_enable() {
  $library = libraries_detect('dhtmlxgantt');
  if (empty($library['installed'])) {
    $t = get_t();
    $message = $t('You need to download the !dhtmlxgantt, extract the archive
     and place files from the dhtmlxGantt folder in the %path directory on your server.', array(
      '!dhtmlxgantt' => l($t('dhtmlxGantt'), $library['download url']),
      '%path' => 'sites/all/libraries/dhtmlxgantt',
    ));
    drupal_set_message($message, 'warning');
  }
}