function webform2pdf_enabled_pdf_access in Webform2PDF 6
Same name and namespace in other branches
- 6.2 webform2pdf.module \webform2pdf_enabled_pdf_access()
- 7.4 webform2pdf.module \webform2pdf_enabled_pdf_access()
- 7.3 webform2pdf.module \webform2pdf_enabled_pdf_access()
This menu appears only if 'Generate PDF' option is enabled
1 string reference to 'webform2pdf_enabled_pdf_access'
- webform2pdf_menu in ./
webform2pdf.module - Implementation of hook_menu().
File
- ./
webform2pdf.module, line 6
Code
function webform2pdf_enabled_pdf_access() {
$param = func_get_args();
$node = array_shift($param);
$call = array_shift($param);
$result = db_query("SELECT enabled FROM {webform2pdf} WHERE nid = %d AND enabled = 1", $node->nid);
$row = db_fetch_array($result);
return $row['enabled'] && call_user_func_array($call, $param);
}