Area Print is a simple module that let's you add print button or link that sends any given element(div, table, block.. anything with an id) to a printer.
All original css from the page(including definitions from parent elements) is applied(though browsers tend to strip some off) and you can append your own on top of that.
In it's current form, the module provides only API-like functionality, no UI at all, though this can be changed in the future if needed.
USAGE:
Where ever you can add php code(php-field, text-area with php input format, custom module, template etc.), you can call the button like this:print area_print_form($options);
where $options is an optional associative array containing:
- target_id: Id of the element you want to print,
- button_id: Id that will be given to the print link or button,
- value: The text for the link/button, e.g.
t('Print'), - type: either
'link'or'button', - custom_css: path to a css file that will get added to the page before printing, e.g.
drupal_get_path('module','my_module').'/css/print.css')
See README.txt for working example.
CREDITS
The module was sponsored by Lääkärikeskus-yhtymä Oy and
developed by Soprano Brain Alliance Oy.
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Maintenance fixes only
- Module categories: Content Display, Developer, JavaScript Utilities
- Reported installs: 46 sites currently report using this module. View usage statistics.
- Downloads: 191
- Automated tests: Enabled
- Last modified: April 25, 2012