You are here

function subscriptions_gen_taxa_links in Subscriptions 5

File

./subscriptions.module, line 1024

Code

function subscriptions_gen_taxa_links($tid, $taxa) {
  if (in_array($tid, $taxa)) {
    $link = l(t('unsubscribe'), 'subscriptions/del/taxa/' . $tid, array(
      'title' => t('Unsubscribe from this category.'),
    ));
  }
  else {
    $link = l(t('subscribe'), 'subscriptions/add/taxa/' . $tid, array(
      'title' => t('Subscribe to this category.'),
    ));
  }
  return $link;
}