0

I'm using Users Export that provides a hook with no extra information.
I need somehow to explore the $info parameters in order to this extra fields

my code:

function display_my_users_loft_data_grids_info_alter(&$info) {
    var_dump($info);
}

But in that case the var_dump doesn't work.

Does someone know any example or documentation or help me to debug that?

1 Answer 1

1

Get the Devel module installed and use the dpm() function, e.g.

function display_my_users_loft_data_grids_info_alter(&$info) {
    dpm($info);
}

Then perform whatever action it would take to invoke that hook, and you'll see the $info variable exported to the messages area for easy browsing.

2
  • It doen't work, is there any way to check if something is invoked?
    – NickF
    Commented Dec 18, 2013 at 16:28
  • Well yeah, but the above method is it! Have a look through the code on the module for module_invoke, you should be able to see how the info array is built up there
    – Clive
    Commented Dec 18, 2013 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.