Revision 582db59d
Added by Assos Assos almost 9 years ago
drupal7/modules/statistics/statistics.module | ||
---|---|---|
118 | 118 |
// Attach Ajax node count statistics if configured. |
119 | 119 |
if (variable_get('statistics_count_content_views', 0) && variable_get('statistics_count_content_views_ajax', 0)) { |
120 | 120 |
if (!empty($node->nid) && $view_mode == 'full' && node_is_page($node) && empty($node->in_preview)) { |
121 |
$node->content['#attached']['js'] = array( |
|
122 |
drupal_get_path('module', 'statistics') . '/statistics.js' => array( |
|
123 |
'scope' => 'footer' |
|
124 |
), |
|
121 |
$statistics = drupal_get_path('module', 'statistics') . '/statistics.js'; |
|
122 |
$node->content['#attached']['js'][$statistics] = array( |
|
123 |
'scope' => 'footer', |
|
125 | 124 |
); |
126 | 125 |
$settings = array('data' => array('nid' => $node->nid), 'url' => url(drupal_get_path('module', 'statistics') . '/statistics.php')); |
127 | 126 |
$node->content['#attached']['js'][] = array( |
Also available in: Unified diff
Update Drupal core to version 7.40