1 user.module user_layout_context_info()

Implements hook_layout_context_info().


core/modules/user/user.module, line 159
Enables the user registration and login system.


function user_layout_context_info() {
  $info['user'] = array(
    'title' => t('User account'),
    // Define the class which is used to handle this context.
    'class' => 'EntityLayoutContext',
    // Define menu paths where the user ID is a "known" context.
    'menu paths' => array(
    // Given the menu paths defined above, identify the part of the path that
    // is needed to generate this context.
    'path placeholder' => '%user',
    // Given an argument, define the callback that will be responsible for
    // loading the main context data.
    'load callback' => 'user_load',
  return $info;