You are here

function subscriptions_gen_type_links in Subscriptions 5

File

./subscriptions.module, line 1034

Code

function subscriptions_gen_type_links($type, $types) {
  if (in_array($type, $types)) {
    $link = l(t('unsubscribe'), 'subscriptions/del/type' . $type . '/0', array(
      'title' => t('Unsubscribe from this node type.'),
    ));
  }
  else {
    $link = l(t('subscribe'), 'subscriptions/add/type' . $type . '/0', array(
      'title' => t('Subscribe to this node type.'),
    ));
  }
  return $link;
}