You are here

function hosting_task_init in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 task/hosting_task.module \hosting_task_init()

Implements hook_init().

Adds refreshTimeout javascript variable.

File

task/hosting_task.module, line 12
Web server node type is defined here.

Code

function hosting_task_init() {
  $settings['hostingTaskRefresh'] = array(
    'refreshTimeout' => variable_get('hosting_task_refresh_timeout', 30000),
  );
  drupal_add_js($settings, 'setting');
}