Révision 3753f249
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/ctools/includes/context.inc | ||
---|---|---|
1400 | 1400 |
* Create a context for the logged in user. |
1401 | 1401 |
*/ |
1402 | 1402 |
function ctools_access_get_loggedin_context() { |
1403 |
global $user; |
|
1404 |
$context = ctools_context_create('entity:user', $user); |
|
1403 |
$context = ctools_context_create('entity:user', array('type' => 'current'), TRUE); |
|
1405 | 1404 |
$context->identifier = t('Logged in user'); |
1406 | 1405 |
$context->keyword = 'viewer'; |
1407 | 1406 |
$context->id = 0; |
Formats disponibles : Unified diff
Weekly update of contrib modules