smita

|
Remove member for in drupal 7 after login

Step1: Login with admin ID & Password. Step2: Go to Configuration. Step 3: Go to Account Settings. Step 4: Click On manage Display at the right corner. Step4: Set History format to hidden. Step 5: Then save.

|

<?php function print_pdf_menu() { $items = array(); $items[‘print_pdf’] = array( //this creates a URL that will call this form at “examples/form-example” ‘title’ => ‘Download PDF’, //page title ‘description’ => ‘Download PDF File ‘, ‘page callback’ => ‘drupal_get_form’, //this is the function that will be called when the page is accessed.  for a form, use drupal_get_form
Read More

How to add a hash or nolink in menus in drupal

Usage: Let you have a parent menu named Services. Under services there are 2 submenus services1 & services2. If  there is no need to give path to services then you can use <nolink> in path. But you have to make some css changes. Step1:Download special_menu_items  module & enable it. Step2: Go to structure->menus->Main Menus->List Links.
Read More

Create a FAQ Page in Drupal 7

Step1: Install “Faq Field” module & install it. Step2:  Go to Structure -> Content types->Basic Page. click on “manage fields” on the “Basic page” . Step3: Add new field:FAQ Choose Field Type: Faq field Select a widget: default. Click on save. click on “Save field settings” without any changes Step4: Choose  answer widget  “Formatable textarea”.
Read More

Step 1: Create the menu function in your module file as follows function registration_menu() {//registration is the module name $items = array(); $items[‘EmpRegistration’] = array( //this creates a URL that will call this form at “EmpRegistration” ‘title’ => ‘Registration Form’, //page title ‘description’ => ‘A simple Registration Form’, ‘page callback’ => ‘drupal_get_form’, //this is the
Read More

Drupal Bug :You have not created any content types yet. Go to the content type creation page to add a new content type.

Suddenly i got this error when i clicked on add content option.. Finally reached @ the solution. Step 1:Go to Menus->Navigation->List Links. Step 2:Disable the “add content” menu from the list. Step 3:Again Enable it with all its sub menus.Never forget to enable it with its sub menus(Like Artcle,basic Page). Step 4:Click on Save Configuration.
Read More

Suppose you want to fetch employee Name of a particular Employee using his/her Employee Code.So you can run the following query to get the result. $id=’1′; $emp_qry=db_query(“SELECT emp_name FROM {employee} WHERE emp_code = ‘$id’”)->fetch(); //print Employee name print “Employee Name is: “.$emp_qry->emp_name;

Install cloud zoom module. Install cloud zoom plug-in inside sites/all/libraries. In the pages where image is present go to manage field. In the image field type choose cloud zoom. Click on ‘*’ & choose image style(thumbnail)to real image. Check gallery mode inside gallery setting. Thumbnail image style: thumbnail. Then Save To show this in view
Read More

Download & activate modules (view, ctools). Go to structure->content type->add new content type->Name (image) ->save & add field. Add new field(gallery)->field type(image)->widget type(image)->save field Label (image) ->max (800*600 ) ->min(150*150)->no of values(1)->save setting->save. Go  to content->add content(do this step repeatedly to add as many image as u want) Go to structure->view->add new view->view name(Gallery)->show content
Read More