When using the nodereference CCK field, I can use views to determine which nodes can be referenced, but I can only pass arguments to the views from the fields settings under administration. I wanted functionality where it's possible to pass the arguments in the url to the nodereference field (with the same format that the Views module uses).
content.node_form.inc is changed solely to allow it to work with the 'Add More' button when it's set for unlimited autocomplete textfields.
For example, I can enable this functionality and set my advanced view argument to '%1' for a particular nodereference field. This means my node form can be 'node/add/content_type/%1' or 'node/node_id/edit/%1'. Whatever is put into %1 will be the first argument of the view used to determine nodes that can be referenced. Additionally, I can place multiple arguments as well (node/add/content_type/%1/%2/%3....).
So if I have a nodereference field 'city' that uses a view which takes [state_title] as an argument. If I type 'node/add/content_type/michigan' in the url, then the city field will only populate with options of cities in Michigan, assuming I created my view correctly.
I'd be great if this patch can be reviewed and hopefully commited. Suggestions are welcome.