How to create custom page by menu hook api

From title, you can easily guess i want to show you how to create a custom page by hook_menu api. I am described in below steps by steps. 1. Write below code in example.module [sourcecode language=”bash”] function example_menu() { $items = array(); $items[‘individual-investors/popup-display’] = array( ‘title’ => t(‘Investor Sign’), ‘description’ => t(‘Investor Sign’), ‘page callback’ […]

How to use PHP Code in "Provide default value" of Contextual filters

Sometimes, we need to use PHP Code for filter contents in drupal views. Now i will show how to take data from url and contents will filter by Taxonomy Terms. 1. First of all, i developed a views and added a “Term reference” field in Contextual Filter of this view. Like in below image 2. […]

How to use Drupal as a Framework ( Part 1 )

When you decided to use drupal for developing a large-scale web site, you never think drupal is a CMS. You should think drupal is a CMF. When you will use drupal core, contrib modules for developing a site, drupal will consider as CMS. When you will use drupal core, contrib modules and extend core modules […]