Hook

Zyxware default image1
| 3 min read
I had a requirement to add a multi-level responsive drop down menu in a Zyxware theme. Please do refer the below reference links to know more about responsive themes and free Drupal themes. So for that I had to edit page.tpl.php, page--front.tpl.php, style.css, template.php etc. First I added the following code to template.php of my theme. The steps that I followed here are,
Zyxware default image3
| 4 min read
One of our clients was trying to upload a pdf file on a node page in their Drupal website. The file was more than 25 MB in size and Drupal was not allowing them to upload the file as it had crossed the max file upload limit and they needed this to be done very quickly. As we were in charge they requested to come up with an easy way to do that. If you want to now the easiest way to set the max file upload size in a Drupal site read on to know more.
Zyxware default image1
| 2 min read
Sometimes we use Drupal view_query_alter to add or modify the view's where clause. To add a new WHERE clause we may use add_where property. Whenever we use an add_where, it will create a WHERE clause along with an AND condition. There will be some cases were we need to use OR instead of AND. So if you want to know more about how to use OR clause in hook_view_query_alter, read on to know more.
Zyxware default image3
| 2 min read
If you are searching for a way to alter the output of a View after it has been rendered, you may find this article to be helpful. We had recently come across a situation which forced us to rewrite the rendered output from a View and we managed to find a useful hook - hook_views_post_render. It helped us to rewrite the output of the view. If you are facing the same situation in your Drupal site and would like to know how to rewrite the output of a View using hooks_views_post_render. then continue reading.
Zyxware default image3
| 3 min read
There may be many situations while working on a Drupal site where you need to create custom tokens for a variety of applications within Drupal. If you are faced with the same scenario in your Drupal site and want to know how to create custom tokens in a Drupal 6 website then read on to know more.