You are here

function feedback_simple_preprocess_feedback_simple in Feedback Simple 6

Same name and namespace in other branches
  1. 7 feedback_simple.module \feedback_simple_preprocess_feedback_simple()

Implements hook_preprocess_feedback_simple().

File

./feedback_simple.module, line 32
Module file.

Code

function feedback_simple_preprocess_feedback_simple(&$variables) {

  // Hide the tab when on the $link page.
  if ($_GET['q'] == $variables['link']) {
    $variables['enabled'] = false;
  }

  // Allow Drupal to apply base_path and locale prefix outside of the
  // theme registry cache.
  $variables['link'] = url($variables['link']);
}