You are here

function wf_crm_admin_access in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 webform_civicrm.module \wf_crm_admin_access()
  2. 7.3 webform_civicrm.module \wf_crm_admin_access()

Access callback to determine if user can see the CiviCRM tab of a webform.

Parameters

object $node:

Return value

bool

3 calls to wf_crm_admin_access()
wf_crm_admin_component::preprocessComponentsForm in includes/wf_crm_admin_component.inc
Add CiviCRM info and theming to webform components form.
wf_crm_contact_search in includes/contact_component.inc
Returns a list of contacts based on component settings.
wf_crm_webform_ajax::contactAjax in includes/wf_crm_webform_ajax.inc
Load one or more contacts via ajax
1 string reference to 'wf_crm_admin_access'
webform_civicrm_menu in ./webform_civicrm.module
Implements hook_menu().

File

./webform_civicrm.module, line 60
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');
}