On a PostgreSQL database the "%s" in the hook_insert() function causes the query to fail because they are interpreted as a column name. These double quotes around the URL must be single quotes.

Comments

koens’s picture

Obviously the hook_update fails for the same reason.

Solution replace "%s" by \'%s\' in both hook_insert and hook_update

Bèr Kessels’s picture

Status: Active » Closed (won't fix)

Weblinks is superceded by http://drupal.org/project/links. That module even has an upgrade path from weblinks.