You are here

function template_preprocess_rules_link in Rules Link 7

File

./rules_link.module, line 458
Rules Link - module file.

Code

function template_preprocess_rules_link(&$variables) {
  if (!isset($variables['options'])) {
    $variables['options'] = array();
  }
  $variables['options'] += array(
    'html' => FALSE,
  );
  $variables['title'] = $variables['options']['html'] ? $variables['title'] : check_plain($variables['title']);
  if (isset($options['attr']['title']) && strpos($options['attr']['title'], '<') !== FALSE) {
    $variables['attr']['title'] = strip_tags($options['attr']['title']);
  }
  else {
    if (!isset($options['attr']['title'])) {
      $variables['attr']['title'] = $variables['title'];
    }
  }
  $variables['href'] = check_plain(url($variables['href'], $variables['options']));
  $variables['attr'] = drupal_attributes($variables['attr']);
}