Révision 5136ce55
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/piwik/piwik.admin.inc | ||
---|---|---|
235 | 235 |
'#type' => 'checkboxes', |
236 | 236 |
'#title' => t('Track messages of type'), |
237 | 237 |
'#default_value' => variable_get('piwik_trackmessages', array()), |
238 |
'#description' => t('This will track the selected message types shown to users. Tracking of form validation errors may help you identifying usability issues in your site. Every message is tracked as one individual event. Messages from excluded pages cannot tracked.'), |
|
238 |
'#description' => t('This will track the selected message types shown to users. Tracking of form validation errors may help you identifying usability issues in your site. Every message is tracked as one individual event. Messages from excluded pages cannot be tracked.'),
|
|
239 | 239 |
'#options' => array( |
240 | 240 |
'status' => t('Status message'), |
241 | 241 |
'warning' => t('Warning message'), |
... | ... | |
387 | 387 |
} |
388 | 388 |
|
389 | 389 |
// Code snippet settings. |
390 |
$user_access_add_js_snippets = !user_access('add JS snippets for piwik'); |
|
391 |
$user_access_add_js_snippets_permission_warning = $user_access_add_js_snippets ? ' <em>' . t('This field has been disabled because you do not have sufficient permissions to edit it.') . '</em>' : ''; |
|
390 | 392 |
$form['advanced']['codesnippet'] = array( |
391 | 393 |
'#type' => 'fieldset', |
392 | 394 |
'#title' => t('Custom JavaScript code'), |
... | ... | |
398 | 400 |
'#type' => 'textarea', |
399 | 401 |
'#title' => t('Code snippet (before)'), |
400 | 402 |
'#default_value' => variable_get('piwik_codesnippet_before', ''), |
403 |
'#disabled' => $user_access_add_js_snippets, |
|
401 | 404 |
'#rows' => 5, |
402 | 405 |
'#description' => t('Code in this textarea will be added <strong>before</strong> _paq.push(["trackPageView"]).') |
403 | 406 |
); |
... | ... | |
405 | 408 |
'#type' => 'textarea', |
406 | 409 |
'#title' => t('Code snippet (after)'), |
407 | 410 |
'#default_value' => variable_get('piwik_codesnippet_after', ''), |
411 |
'#disabled' => $user_access_add_js_snippets, |
|
408 | 412 |
'#rows' => 5, |
409 | 413 |
'#description' => t('Code in this textarea will be added <strong>after</strong> _paq.push(["trackPageView"]). This is useful if you\'d like to track a site in two accounts.') |
410 | 414 |
); |
Formats disponibles : Unified diff
Weekly update of contrib modules