As part of the eLangdell download verify project I needed to get the the book title and pass it to the embedded form that’s being generated by JavaScript on the book page. I did this using drupal_get_title() to set a variable in PHP and then padding that to js as part of the Drupal settings array. Getting here took a bit of trial and error, but this approach works well.