Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a primary link say "Real Estate" and on click of that i have to display the Block that prints the list of all the categories of real estate say Apartment, Home for sale, Office and so on....
Let me explain what i did yet:
i have created the New Content type and named it as a Real Estate which accepts the user input. I had use the Category module of drupal to attach the category to this input format.
For display the categories i have created new module say "display_realestate".
I have written the code that lists all the categories using hook_block() function.
function display_realestate_block($op = 'list', $delta = 0, $edit = array()){
switch($op){
case 'list':
$blocks[0]['info'] = t('Real Estate');
return $blocks;
case 'configure':
//optional
break;
case 'save':
// optional
break;
case 'view':
if (user_access('access content')) {
switch($delta){
case 0:
$block['subject'] = t('Real Estate');
$block['content'] = list_categories();
break;
} //switch $delta
} //if
if (empty($block['content'])) {
$block = array(); // zap empty block
}
return $block;
} //switch $op
} //hook_block
i am very much beginner to Drupal can any buddy help to build sample module which will accept some data from user through textbox and that inserted into Mysql DB
I'm new to Drupal and am looking for a module to add rewards points for different user functions, ie add 1 point for commenting on a bog, add 5 points for adding a story, etc. I also need a way to subtract points, either manually or automatically. For example, subtract 2 points when entering a give-away contest.
Is there a module/combinate of modules that can do this?
HI i am very much never to the drupal i have site http://jataayu.net/?q=downloadmgr
there after clicking on download i need to capture client IP address ,which version he is downloading software etc,i dont know where to start from plz help me