When editing a node, I need to be able to see both the options already selected in the optionwidgets_buttons module as well unselected options still available.

Currently, i am only able to see unselected options still available (see http://drupal.org/node/648110). The options already selected are not present.

I have no way of accessing the current, loaded node within the allowed values php code field. It seems one is only able to pull in nodes from the database. I thought I might try using Drupal_get_form, but this generates errors. I looked for a global that might represent the loaded node. Nothing.

The last possibility I can consider is taking the node id from the url and load the node from the database. But i'm not sure how to access that.

Your consideration is appreciated.

Comments

markus_petrux’s picture

Status: Active » Closed (works as designed)

This is not currently possible because we do not know the context in all places where this code is executed.

Please, see comment #44 in this issue #196518: Token support for advanced view argument.