You are here

function hook_pay_user_settings_access in Pay 7

Same name and namespace in other branches
  1. 6 pay.api.php \hook_pay_user_settings_access()

This hook is used to grant access to the "Payment settings" tab under the user edit screen. The tab will become visible if any module returns TRUE for this hook.

Use this function if you are also implementing hook_pay_user_settings_form() and/or you want to add your information to the user's settings page.

1 invocation of hook_pay_user_settings_access()
pay_user_settings_access in ./pay.module
An access callback for access to user-specific Payment settings form.

File

./pay.api.php, line 62
Hooks provided by the Pay module.

Code

function hook_pay_user_settings_access($account) {
  if (user_access('do something interesting with my payment module')) {
    return TRUE;
  }
}