Issue #1407168 by cpliakas: Removed the User Relationships integration module and...
[project/profile_privacy.git] / profile_privacy.api.php
1 <?php
2
3 /**
4 * @file
5 * Hooks exposed by profile_privacy.
6 */
7
8 /**
9 * Access settings available to Profile Privacy.
10 *
11 * @return array
12 * An associative array keyed by unique name of the searcher. Each searcher is
13 * an associative array containing:
14 * - label: The name of the setting displayed to the user in the profile form.
15 * - description: A brief description of the setting.
16 * - access callback: A function that returns a boolean flagging whether the
17 * user has access to view the field.
18 */
19 function hook_profile_privacy_access_info() {
20 return array(
21 'private' => array(
22 'label' => t('Private'),
23 'description' => t('Private to everyone except to the user whose profile the field belongs to.'),
24 'access callback' => 'profile_privacy_access_callback',
25 ),
26 );
27 }