There isn't an existing function to do this simply because there is no way to get it working on all server set-ups. In short, most people run CGI scripts as the user "nobody" or "apache" or somesuch, a user which (for security reasons) rarely has access to anything except the files within the web directory. As such, modifying crontabs - which are well outside the web directory - is impossible.
If you run as your own user you might have a little more luck, but I wouldn't guarantee anything.