This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Integration into search module

Hi all,

I would like to integrate the drupal Profile module into the Search module. Say, I am Joe Smith from San Francisco -- when someone searches for "San Francisco" on our site, I want them to be able to locate the profile.

From what I understand I'll have implement a "search" hook so that the module is included in the search function.

Question: Is there anything I'm missing? Do I have to implement indexing for my module also, or do I have to modify the search module indexer to include the data in the profile section?

Category list in a bloc with views... nearly perfect...

Hello,

I made a view to display in a bloc the list of categories (taxonomy terms) of my drupal site.

Here it is:


$view = new stdClass();
$view->name = 'CategoryBloc';
$view->description = '';
$view->access = array (
0 => '1',
1 => '2',
);
$view->view_args_php = '';
$view->page = FALSE;
$view->page_title = '';
$view->page_header = '';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '3';
$view->page_type = 'list';
$view->url = 'taxonomy/term';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->block = TRUE;
$view->block_title = 'Categories';
$view->block_header = '';
$view->block_header_format = '3';
$view->block_footer = '';
$view->block_footer_format = '3';
$view->block_empty = '';
$view->block_empty_format = '3';
$view->block_type = 'list';
$view->nodes_per_block = '10';
$view->block_more = TRUE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'term_data',
'field' => 'weight',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array (
array (
'type' => 'taxid',

Simple module with the Pro Drupal Development

Hello,

I try to develop a simple module following the chapter 4 from the interesting book Pro Drupal Developement. See the code I used bellow.
My simple module is called "monmenu" can be enabled using the admin page, but, strangely when using the relative URL monmenu it doesn't work (I get a page not found).

What's wrong? Thanks to help a Java/Grails developer!

Here the code:

Drupalit

How can I provide embedded drupalit for third party site? So visitors of site A can vote for sites on my website

Specific Role mods

We want to create a role that will allow a youth group leader or "leader" to be able to add a specific number of users with names and passwords. Currently, they buy x amount of tickets through memberclicks and I have to download the .csv files. I use the csv info to manually add user. The problem is, they are buying tickets in bulk and we want the youth worker to have the ability to add x number of users within our site (so I am not sitting there all day adding user after user). We want them to be able to do this but not have admin rights.

drupal_set_content? Easy Newbie++ Question

I'm having trouble adding content to the screen. I'm trying to echo variables and such and the only place this works is in the actual theming pages.

I've tried adding print statements to my module's functions.

I've tried using drupal_set_content.

I've tried just inserting html (which I didn't think would work since everything is variable driven) into the functions.

I'm able to edit and add to previously built modules, but only by adding to forms or editing the message variable.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions