Sam's notebook

Wikisource books for binding February 11th, 2018, 12PM

Open content

I have been experimenting with turning Wikisource works into LaTeX-formatted bindable PDFs. My initial idea was to produce quatro or octavo layout sheets (i.e. 8 or 16 book pages to a sheet of paper that’s printed on both sides and has the pages layed out in such a way as when the sheet is folded […]

[No comments] [Keywords: , , , , , , , ] [Permanent link]

Including views in Drupal modules December 17th, 2014, 9AM

Programming

Views are included in modules by implementing hook_views_api() and hook_views_default_views() and returning an array of view objects from the latter. The easiest way to construct the view object is to create the desired view via the UI and then export it, saving each exported view into its own function in sites/all/modules/custom/modulename/modulename.views_default.inc and then returning them […]

[No comments] [Keywords: , , , , , ] [Permanent link]