Home
Realizing Ideas!

Talk

My status

bhavinjoshi19
b_joshi19
Follow joshicsin on Twitter
Freenode (IRC) beautifulmind on #drupal-consultants

+91 999 886 0979

Talk
  • Home
  • Drupal Development
  • Drupal Training
  • PHP training
  • Developer's Network
  • Testimonials
  • Work Portfolio
  • Get a quote

Developer's network

  • Drupal hook: hook_mail_alter
  • Grid of terms in a block
  • Node Visitors
  • Drupal hook: hook_view
  • Project codes
more


Joshi Consultancy Services on Facebook

Home » Feed aggregator » Categories

Developer's network

Drupal hook: hook_mail_alter

Drupal Developer - Thu, 04/03/2010 - 10:28

When sending e-mails or newsletters from your website, you might want to inject some information like website name, disclaimer, copy right information, unsubscribe link and such. Just like hook_form_alter, you can use hook_mail_alter to virtually alter anything in the mail just before Drupal sends the e-mail. You can even change the mime type of the email, for example, from plain text to HTML and vice versa.
Here is the syntax/signature of the hook

  • Drupal 5: hook_mail_alter(&$mailkey, &$to, &$subject, &$body, &$from, &$headers)
  • Drupal 6, 7: hook_mail_alter(&$message)

$message has the following key-value pairs:

  • 'id': Unique id of the mail being sent.
  • 'to': The destination e-mail address(es)

read more

Categories: Developer's network

Grid of terms in a block

Wordpress Developer - Tue, 23/02/2010 - 11:12
Grid of terms in a block. This CodeLet show how to display terms in a vocabulary as block. The CodeLet will display the terms, along with term icon, if taxonomy image module is installed, in a grid of 4X4. The block is configurable. You can select which vocabulary to show the terms from. [...]
Categories: Developer's network

Node Visitors

Wordpress Developer - Tue, 23/02/2010 - 11:10
Node Visitors. This CodeLet adds a local task on node page which lists all the unique visitors of the node. You can configure the profile fields to be shown list.
Categories: Developer's network

Drupal hook: hook_view

Wordpress Developer - Sat, 20/02/2010 - 15:46
Drupal hook: hook_view. The full view of a node including all the information associated with the nodes like author, node posted date, file attached to the node and any other data that are associated by other custom modules is managed by hook_view. The main goal and use of the hook_view is to allow [...]
Categories: Developer's network

Project codes

Wordpress Developer - Fri, 19/02/2010 - 19:15
Project codes. This CodeBook contains CodeLets from different projects that are allowed to publish to community. All the CodeLets under this CodeBook are published under GNU/GPL license. You can use, share, modify and publish it under GNU/GPL license.
Categories: Developer's network

Image menu

Wordpress Developer - Fri, 19/02/2010 - 16:27
Image menu. This CodeLet will allow you to add an image to a menu by overriding the menu in the template.php file of you theme. Also, the module offer admin side control to select and put the image to a menu item.
Categories: Developer's network

Image menu

Drupal Developer - Fri, 19/02/2010 - 13:10

This CodeLet will allow you to add an image to a menu by overriding the menu in the template.php file of you theme. Also, the module offer admin side control to select and put the image to a menu item.

Categories: Developer's network

Node information

Wordpress Developer - Fri, 19/02/2010 - 11:07
Node information. This CodeLet shows a link on nodes to request more information for a node. By clicking the link, the user will be redirected to the site wide contact page and the subject field of the contact form is filled with the node title. Also, the link to the node will [...]
Categories: Developer's network

Node Visitors

Drupal Developer - Sat, 13/02/2010 - 13:07

This CodeLet adds a local task on node page which lists all the unique visitors of the node. You can configure the profile fields to be shown list.

Categories: Developer's network

Node information

Drupal Developer - Thu, 11/02/2010 - 10:54

This CodeLet shows a link on nodes to request more information for a node. By clicking the link, the user will be redirected to the site wide contact page and the subject field of the contact form is filled with the node title. Also, the link to the node will be added just before the mail will be sent. Thus preventing the user from modifying the link.

Categories: Developer's network

Grid of terms in a block

Drupal Developer - Tue, 09/02/2010 - 19:13

This CodeLet show how to display terms in a vocabulary as block. The CodeLet will display the terms, along with term icon, if taxonomy image module is installed, in a grid of 4X4. The block is configurable. You can select which vocabulary to show the terms from. Its quite attractive and can be used on front page.

Categories: Developer's network

Project codes

Drupal Developer - Tue, 09/02/2010 - 19:06

This CodeBook contains CodeLets from different projects that are allowed to publish to community. All the CodeLets under this CodeBook are published under GNU/GPL license. You can use, share, modify and publish it under GNU/GPL license.

Categories: Developer's network

Drupal hook: hook_view

Drupal Developer - Mon, 08/02/2010 - 22:17

The full view of a node including all the information associated with the nodes like author, node posted date, file attached to the node and any other data that are associated by other custom modules is managed by hook_view. The main goal and use of the hook_view is to allow the node modules to add extra information and manage those extra information to display when viewing the node. Nodes can have tease view as well as page view. On teaser view, only some of the information associated with the node is displayed; we can say its an overview of the node. On page view, all the information associated with the node is displayed.

<?php
/**
* Implementation of hook_view
* @param $node
* @param $teaser
* @param $page
* @return unknown_type
* @author Drupal Developer
*/

read more

Categories: Developer's network

Drupal hook: hook_block

Drupal Developer - Mon, 01/02/2010 - 11:14

Blocks are the one of the basic and most fascinating features of Drupal. With block you can display information in the form of block by saving and utilizing the screen area. Here is an example of implementation of hook_block

<?php
/**
* Implementation of hook_block
*
* @param $op
* @param $delta
* @param $edit
* @return $block
* @author Drupal Developer
*/
function browse_info_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[1] = array(
'info' => t("Browse information by category"),
'status' => 1,
'region' => 'content',
'weight' => 0,
);

return $blocks;
case 'configure':
$am__vocabulary = _get_vocabulary();
$am__imagecache = _get_imagecache();

read more

Categories: Developer's network

Drupal hook: hook_cron

Drupal Developer - Sun, 31/01/2010 - 18:28

You've just published a Drupal website and people find it very useful. So, they started signing up with your website and its really very good traffic now. You have planned to implement some features and you want to let know about to all the members of the site. There are two ways: you send e-mails to individuals by using their contact form or implement a system with which you create a node and the site itself sends e-mails. How about sending the e-mails at specific period of time? ohh.. yeah. that's great. Drupal's hook_run makes it happen. Since, there are more features to come, you want to do this every time you have something new to let others know about, you would use hook_cron, which performs specific tasks assigned to it periodically.

read more

Categories: Developer's network

Share your Drupal codes

Drupal Developer - Thu, 28/01/2010 - 14:30

We are pleased to announce a successful implementation of CodeBook, a feature which lets you share your Drupal codes and shows your Drupal skill to the world. By creating CodeBooks, you can showcase your Drupal Development skills by referring the CodeBooks to your potential clients as well as recruiters. This is all about helping the community in learning the Drupal in an easier way. So, Join the movement!

Categories: Developer's network

We, the people of India...

Drupal Developer - Tue, 26/01/2010 - 15:25

We, the people of India, are celebrating 60 years of becoming sovereign. By looking back, we are proud of our progress we achieved after becoming independent. British rule is an old story. We love to talk about the progress and the honor India and Indians, all over the world, have earned. Unstable and Untrustworthy neighbors have tried to disturb our life by fighting proxy wars, but we are stand still like Himalayas. We, the people of India, proud to be Indians!!

Jai Hind!!

Categories: Developer's network

Video Chat! have you tried it?

Drupal Developer - Fri, 22/01/2010 - 15:01

Its our pleasure to announce the inclusion of Video chat. Now, you can chat using video on Drupal Developer. Pretty nice interface and very good quality video. Making it more easy for Drupal developers to communicate and act faster. Try it today and drop a feedback. We are hearing you.

Categories: Developer's network

Drupal hook: hook_install

Drupal Developer - Fri, 22/01/2010 - 10:28

hook_install() creates tables in the database for the module to which its associated. hook_install not just restricted creating tables but it also creates vocabularies, terms in the vocabularies and sets variables to be used by modules. The hook_install set ups the basic requirement for a module to function properly. Not all the modules require to implement hook_install but which saves data to own tables and for providing extra features for which there are no tables or fields exists from where information can be fetched.

  • Drupal 5: Table definition and all other required set up for the module
  • Drupal 6, 7: drupal_install_schema('[hook]')

Here is an example of hook_install()

<?php
/**
* Implementation of hook_install
*

read more

Categories: Developer's network

Drupal Developer on your mobile phone

Drupal Developer - Wed, 20/01/2010 - 23:51

Now you can stay connected to Drupal Developer as you go and can access the free Codes and information about Drupal.
Drupal Developer is now available on mobile phone. You can do every thing on Drupal Developer with your mobile phone as you usually do on computer. Try it now let us know what do you think about this new feature.

Categories: Developer's network
  • 1
  • 2
  • next ›
  • last »
Syndicate content

Inside JCS

  • Drupal & PHP
  • Drupal Training
  • Network
  • Client sites development and deployment
  • Query optimization & caching
  • SEO optimization
  • Theme customization
  • Custom module development
  • Site maintenance and upgrade

Read more

  • PHP Basics & advanced
  • PHP templates
  • Drupal Basics & customization
  • Custom Drupal module development
  • Custom Drupal theme development & integration
  • Contributed module configuration & workflow

Read more

Joshi Consultancy Services is also engaged in providing community resources.

  • Drupal Developer | A Guide to Drupal Developers
  • Developer's Group | Collaborative Development
  • Blog Developer | A Guide to Blog Developers
  • Store Developer | A Guide to store Developers

Client says...

I am very satisfied with Bhavin Joshi's services. He wrote a...

-Justin Ludwig

I've worked with Bhavin several times and I highly recommend his...

-John Fitzgerald

I had a good experience working with Bhavin, although there is a...

-Sean

Project proposal

You can get a quote or leave a feedback by sending a query using the form below.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  • Company
  • Contact
  • Site map
  • Home

© Joshi Consultancy Service. All rights reserved.

Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.