Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/ctools_plugin_example/plugins/access/example_role.inc | ||
---|---|---|
4 | 4 |
* @file |
5 | 5 |
* Plugin to provide access control based upon role membership. |
6 | 6 |
* This is directly from the ctools module, but serves as a good |
7 |
* example of an access plugin |
|
7 |
* example of an access plugin.
|
|
8 | 8 |
*/ |
9 | 9 |
|
10 | 10 |
/** |
... | ... | |
73 | 73 |
} |
74 | 74 |
return format_plural(count($names), '@identifier must have role "@roles"', '@identifier can be one of "@roles"', array('@roles' => implode(', ', $names), '@identifier' => $context->identifier)); |
75 | 75 |
} |
76 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules