function wf_crm_admin_access in Webform CiviCRM Integration 7.3
Same name and namespace in other branches
- 7.5 webform_civicrm.module \wf_crm_admin_access()
- 7.4 webform_civicrm.module \wf_crm_admin_access()
Access callback to determine if user can see the CiviCRM tab of a webform.
Parameters
$node: Node object
Return value
bool
2 calls to wf_crm_admin_access()
- theme_webform_civicrm_components_form in ./
webform_civicrm_admin.inc - Theme override for webform components form.
- wf_crm_ajax in ./
contact_component.inc - Drupal page callback to serve AJAX requests.
1 string reference to 'wf_crm_admin_access'
- webform_civicrm_menu in ./
webform_civicrm.module - Implements hook_menu().
File
- ./
webform_civicrm.module, line 51 - Webform CiviCRM Integration Module: Links webform submissions to contacts in a CiviCRM database. @author Coleman Watts
Code
function wf_crm_admin_access($node) {
return node_access('update', $node) && user_access('access CiviCRM');
}