You are here

function commons_origins_preprocess_node in Drupal Commons 6.2

Same name and namespace in other branches
  1. 7.3 themes/commons/commons_origins/template.php \commons_origins_preprocess_node()

File

themes/commons_origins/template.php, line 64

Code

function commons_origins_preprocess_node(&$variables) {
  $query = 'destination=' . $_GET['q'];
  $variables['answers_login'] = t('<a href="@login">Login</a> or <a href="@register">register</a> to vote', array(
    '@login' => url('user/login', array(
      'query' => $query,
    )),
    '@register' => url('user/register', array(
      'query' => $query,
    )),
  ));
}