Add a custom handler method to a view?

Add a custom handler method to a view?

How can I add a custom handler method to a view ? For example, i add a custom handler in hook_views_query_alter like this: $this->view->addHandler(‘page_2’, ‘filter’, ‘node__field_subsidiary’,... read more
Display both sort icons on sortable table columns

Display both sort icons on sortable table columns

I’m using Drupal’s theme table function to build a custom table. All of the columns on my table are sortable. I would like to visually indicate that they are sortable by putting both an ascending and descending sort icon in the column header. To indicate... read more
Add a custom handler method to a view?

show/hide a menu item based on specific user role

I have a certain number of main menus which need to showcased based on logged in user role. for example user with the role, A can sees few menus and user with the role B, sees another set of few menus. read more