Enabling context in a panel plugin

17/02/2016

In Drupal 7:

/**
* Plugin definition.
*/
$plugin = array(
 'title' => t('TITLE'),
 'category' => t('CATEGORY'),
 'render callback' => 'callback_render_function',
 'all contexts' => TRUE, // Enables the context of the panel
);