You are here

function _simplenews_statistics_replace_url in Simplenews Statistics 6

Same name and namespace in other branches
  1. 6.3 simplenews_statistics.module \_simplenews_statistics_replace_url()
  2. 6.2 simplenews_statistics.module \_simplenews_statistics_replace_url()
  3. 7.2 simplenews_statistics.module \_simplenews_statistics_replace_url()
  4. 7 simplenews_statistics.module \_simplenews_statistics_replace_url()

Alter link to go through statistics

File

./simplenews_statistics.module, line 127
Gathers newsletter statistics.

Code

function _simplenews_statistics_replace_url($match, $nid, $mail) {
  return url('simplenews/statistics/click', array(
    'absolute' => TRUE,
    'query' => array(
      'nid' => $nid,
      'mail' => $mail,
      'url' => $match,
    ),
  ));
}