I have a CCK nodereference field, displayed as a dropdown, and populated by a view.
I'd like to change that view depending on user permissions. Can I change the view programmatically before it gets rendered?
I can't do it in hook_form_alter()
because CCK isn't available here.
So I set up an #after_build
, and inspect here. But this seems to late. The #options
have already been rendered and there's no view
property to change.