You are here

function fasttoggle_comment_link in Fasttoggle 7

Implements hook_link().

File

module/fasttoggle_comment/fasttoggle_comment.module, line 79

Code

function fasttoggle_comment_link($type, $obj = NULL, $teaser = FALSE) {
  $links = array();
  $options = fasttoggle_get_allowed_links($type, $obj);
  if (!empty($options) && $type == 'comment') {
    fasttoggle_load_comment($obj);
    foreach (array_keys($options) as $key) {
      $links['fasttoggle_' . $key] = fasttoggle($options, 'status', $key, $obj, FASTTOGGLE_FORMAT_LINK_ARRAY);
    }
  }
  return $links;
}