Linkchecker Original Code
✓ Published0🌍 Public
Aalexfinnarn
Last edited Mar 7, 2018
Created on Mar 7, 2018
This example shows a PHP routine that synchronizes a Drupal link-checking module with its database by identifying missing links from a bean and inserting only new ones. It first queries the `linkchecker_link` table using `db_query` with a URL hash to check for existing entries, then uses `drupal_write_record` to create new link records and `db_insert` to associate them with the bean. The code temporarily ignores database replication lag via `variable_set` and `db_ignore_slave`, and it filters link status with `_linkchecker_link_check_status_filter`.
AI-generated description