You are here

function hook_webform_results_clear_access in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.api.php \hook_webform_results_clear_access()

Determine if a user has access to clear the results of a webform.

Access via this hook is in addition (adds permission) to the standard webform access (delete all webform submissions).

Parameters

object $node: The Webform node to check access on.

object $account: The user account to check access on.

Return value

bool TRUE or FALSE if the user can access the webform results.

See also

webform_results_clear_access()

Related topics

1 invocation of hook_webform_results_clear_access()
webform_results_clear_access in ./webform.module
Menu access callback.

File

./webform.api.php, line 696
Sample hooks demonstrating usage in Webform.

Code

function hook_webform_results_clear_access($node, $account) {
  return user_access('my additional access', $account);
}