I'm using Drupal 7 and Flag.
I try to modify the output of my flags according to the view mode with preprocess_flag :
function mytheme_preprocess_flag(&$variables) {
$variables['full'] = $variables['view_mode'] == 'full';
if ($variables['full']) {
...
}
}
But i have an error : Notice : Undefined index: view_mode dans publiu_preprocess_flag()
.
Do you know how to use the view_mode in hook_preprocess_flag ?