--
-- content_extlink__delete/1
--
create or replace function content_extlink__delete(
  integer
) returns int4 as $$

declare
  delete__extlink_id             alias for $1;  
begin

  delete from cr_extlinks
    where extlink_id = delete__extlink_id;

  PERFORM content_item__delete(delete__extlink_id);

return 0; 
end;$$ language plpgsql;