how do I access the consumerKey in hook_app_predelete?

Not applicable

The hook_app_predelete accepts a parameter -

&$form_state

I'm trying to extract the consumerKey like this:

$form_state['storage']['entity']->consumerKey 

It doesn't work. Am I missing something?

0 2 40
2 REPLIES 2

Not applicable

Has anyone customized app_predelete?

@amit , Use below code to see the contents of $form_state, that will throw some light, hope it helps.

drupal_set_message("<pre>" . print_r($form_state, 1) . "</pre>");