My experiences/views on drupal development (module/theme)

Hello I am from Nepal and we have very few drupal developers (module/theme) here. I usually am focused in drupal module developement so had average knowledge of drupal theme development But recently I threw myself a challenge to work in drupal theming to test my skills. I decided to do everything i.e. from PSD to … Continue reading “My experiences/views on drupal development (module/theme)”

Drupal Logo

hook_menu path not working in Drupal (6,7)

Right From Drupal website : This hook enables modules to register paths in order to define how URL requests are handled. Paths may be registered for URL handling only, or they can register a link to be placed in a menu (usually the Navigation menu). A path and its associated information is commonly called a … Continue reading “hook_menu path not working in Drupal (6,7)”

[Solved] How to use hook_entity_view in drupal7 ?

I work in a team of developers and we separately develop modules in drupal. We are assigned to create entities, and there was time once I need to alter the view which was output of some other entity module. So, I am sharing here my experience how I did that. Lets say we have two … Continue reading “[Solved] How to use hook_entity_view in drupal7 ?”

Drupal Logo

[Solved] Add module to admin/config page in Drupal7

We are going to create a following custom block in admin/config page. To create a block in admin/config like those ‘People, Content Authoring, Media’ etc. We need to define two menu items as shown below [sourcecode language=”php” highlight=”3,13″]function products_menu() { $items = array(); $items[‘admin/config/products’] = array( ‘title’ => ‘Configure Products’, ‘description’ => ‘Allows administrators to … Continue reading “[Solved] Add module to admin/config page in Drupal7”

Error Installing Drupal7

I am using Xampp in Ubuntu Natty Narwhal and was trying install Drupal7 and I noticed the following error. Warning: PDO::__construct(): [2002] Invalid argument (trying to connect via unix://) in /opt/lampp/htdocs/drupal7dev/includes/database/database.inc on line 324 In the red box: In order for Drupal to work, and to continue with the installation process, you must resolve all … Continue reading “Error Installing Drupal7”