Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin/structure/menu/manage/mymenu
- function gestionuser_preprocess_page(&$variables, $hook) {
- if(!empty($variables['page']['content']['system_main'])) {
- foreach ($variables['page']['content']['system_main'] as $key => $value) {
- if(is_array($value) && !empty($value['view'])) {
- //print '<pre>'; print_r($value['view']['#href']); print '</pre>';
- $value['view']['#href'] = '';
- $value['view']['#type'] = 'text_format';
- //unset($value['view']);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement