Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/access/perm.inc | ||
---|---|---|
20 | 20 |
); |
21 | 21 |
|
22 | 22 |
/** |
23 |
* Settings form for the 'by perm' access plugin |
|
23 |
* Settings form for the 'by perm' access plugin.
|
|
24 | 24 |
*/ |
25 | 25 |
function ctools_perm_ctools_access_settings($form, &$form_state, $conf) { |
26 | 26 |
$perms = array(); |
27 |
// Get list of permissions |
|
27 |
// Get list of permissions.
|
|
28 | 28 |
foreach (module_list(FALSE, FALSE, TRUE) as $module) { |
29 | 29 |
// By keeping them keyed by module we can use optgroups with the |
30 | 30 |
// 'select' type. |
... | ... | |
70 | 70 |
$permissions = module_invoke_all('permission'); |
71 | 71 |
return t('@identifier has "@perm"', array('@identifier' => $context->identifier, '@perm' => $permissions[$conf['perm']]['title'])); |
72 | 72 |
} |
73 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules