Projet

Général

Profil

Paste
Télécharger (357 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / acl / acl.api.php @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 * API documentation for ACL.
6
 */
7

    
8
/**
9
 * Explain what your ACL grant records mean.
10
 */
11
function hook_acl_explain($acl_id, $name, $number, $users = NULL) {
12
  if (empty($users)) {
13
    return "ACL (id=$acl_id) would grant access to $name/$number.";
14
  }
15
  return "ACL (id=$acl_id) grants access to $name/$number to the listed user(s).";
16
}
17