function hosting_task_preprocess_views_view_table in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_preprocess_views_view_table()
- 7.3 task/hosting_task.module \hosting_task_preprocess_views_view_table()
Implements hook_preprocess_views_view_table().
File
- task/
hosting_task.module, line 1933 - Web server node type is defined here.
Code
function hosting_task_preprocess_views_view_table(&$vars) {
$id = "{$vars['view']->name}-{$vars['view']->current_display}";
switch ($id) {
case 'hosting_task_list-block':
drupal_add_js(drupal_get_path('module', 'hosting_task') . '/hosting_task.js');
$settings['hostingTaskRefresh'] = array(
'queueBlock' => 1,
);
drupal_add_js($settings, 'setting');
break;
}
}