Area Print


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 a css 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

druid.fi
The module was sponsored by Lääkärikeskus-yhtymä Oy and
is developed by Roni Kantis and currently sponsored by Druid. Contact us for all your Drupal needs.


Area Print项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。
周安装量: 
256
维护状态: 
积极维护中
开发状态: 
仅修复BUG,不添加新功能

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.1tar.gz (9.01 KB) | zip (10.08 KB)2012年5月15日发布说明简 | 繁 | 更多

其他版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-1.0-beta1tar.gz (10.15 KB) | zip (12.35 KB)2015年9月17日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.x-devtar.gz (9.28 KB) | zip (10.3 KB)2013年9月30日发布说明简 | 繁 | 更多