Skip to content
Snippets Groups Projects
Commit cfef438b authored by Alexander Hass's avatar Alexander Hass
Browse files

Issue #2125719 by hass: Links in unpublished nodes are still checked

parent 0eaf68bd
No related branches found
No related tags found
No related merge requests found
linkchecker 6.x-dev, nightly
----------------------------
* Issue #2125719 by hass: Links in unpublished nodes are still checked
* Added Smileys filter (http://drupal.org/project/smiley) to filter blacklist
* Issue #1306498 by hass, evolvingweb: Remove unnecessary hook_requirements in linkchecker.install
* Issue #1923328 by larowlan: Fragment check fails when source page contains spaces between attribute name, equals and value.
......
......@@ -746,11 +746,21 @@ function _linkchecker_status_handling(&$response, $link) {
function linkchecker_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
switch ($op) {
case 'insert':
// The node is going to be published.
if (_linkchecker_scan_nodetype($node->type) && $node->status) {
_linkchecker_add_node_links($node);
}
break;
case 'update':
// The node is going to be published.
if (_linkchecker_scan_nodetype($node->type) && $node->status) {
_linkchecker_add_node_links($node);
}
else {
// The node is going to be unpublished.
_linkchecker_delete_node_links($node->nid);
}
break;
case 'delete':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment