For a recent project I needed to be able to fill a CCK link field via the URL. If this would be useful to others, I can provide a (simple) patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

helenrae’s picture

Status: Active » Needs review
FileSize
793 bytes

My first patch. :)

Hopefully this is useful to someone.

Don't forget to run the user-submitted url parameter through drupal_urlencode() in your module.

helenrae’s picture

helenrae’s picture

Ahem, this version should work. Just adding this very simple bit to urlfill_get_path:

case 'link':
return array(0,'#default_value','url');
break;

Apologies for the noise.