? book-link.patch
Index: helpinject.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/helpinject/helpinject.module,v
retrieving revision 1.14
diff -u -p -r1.14 helpinject.module
--- helpinject.module	6 Apr 2009 14:38:41 -0000	1.14
+++ helpinject.module	7 Apr 2009 21:21:16 -0000
@@ -246,11 +246,12 @@ function helpinject_injection_form(&$for
   // Make sure there's an option for NONE (to remove a mapping, for example).
   $none = t('None');
   $options[$none] = $none;
+  $book_add_link = l(t('create'), 'node/add/book', array('attributes' => array('rel' => 'lightframe'), 'query' => 'destination='. request_uri()));
   // The form element for pages radio buttons.
   $form['page'] = array(
     '#type' => 'radios',
     '#title' => t('Available book pages'),
-    '#description' => t('Choose the book page that should be used for this item.'),
+    '#description' => t('Choose the book page that should be used for this item or !create a new one.', array('!create' => $book_add_link)),
     '#options' => $options,
     '#default_value' => empty($defaults) ? $none : $defaults['nid'],
   );
