Currently helpinject allows the selection of one or more books to export from and limits help files to those books. However, helpinject information is exported for all books, irrespective of which books are selected for export.

Need to filter export by the selected books.

Comments

nedjo’s picture

Need to pass in $book_ids array and then:


  $placeholders = db_placeholders($book_ids, 'int');
  $sql = "SELECT h.nid, h.type, h.helpkey, n.title FROM {helpinject} h INNER JOIN {node} n ON h.nid = n.nid INNER JOIN {book} b ON n.nid = b.nid WHERE h.type = '%s' AND b.bid IN (" . $placeholders . ")";
  $result_paths = db_query($sql, array_merge(array('path'), $book_ids));
  $result_forms = db_query($sql, array_merge(array('form'), $book_ids));

I'll roll this into the patch at #895554: Allow adding help to existing modules.