replace template with other when conditions are met
I want to add a record do theme_hook_suggestions variable but only when specific conditions are met, especially when system is going to use a specific template in theme. In effect I want to replace one template with other. I.e. - when user sees node with id = 50 and view mode == teaser and user has set some specific parameters system should use tem...
How to set the filter condition by default for specific condition in view
How to set the filter condition by default for specific condition in view i,e i have view with the filter condition STATUS drop down list has 1]live 2] discard,so here i want to filter by default for live status when i open this view can any please tell me how to do this? Thanks a lot in advance.