You are here

function _linkchecker_link_access in Link checker 6.2

Same name and namespace in other branches
  1. 7 linkchecker.module \_linkchecker_link_access()

Determines if the current user has access to view a link.

Link URLs can contain private information (for example, usernames and passwords). So this module should only display links to a user if the link already appears in at least one place on the site where the user would otherwise have access to see it.

3 calls to _linkchecker_link_access()
linkchecker_form_alter in ./linkchecker.module
linkchecker_nodeapi in ./linkchecker.module
_linkchecker_user_access_edit_link_settings in ./linkchecker.module
Access callback for linkchecker/%linkchecker_link/edit.

File

./linkchecker.module, line 146
This module periodically check links in given node types, blocks, cck fields, etc.

Code

function _linkchecker_link_access($link) {
  $link = (object) $link;
  return _linkchecker_link_node_ids($link) || _linkchecker_link_comment_ids($link) || _linkchecker_link_block_ids($link);
}