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

New to drupal, using drupal 6, need hints for first module (big one)

Hi,

I am new to drupal and have just started a big project using drupal 6 (since it will be released long before our project is released anyway).

I was hoping to describe the module I need to make and get a short list of functions and hooks that i need to accomplish that. I know it's all available in the api but it's soo much easier if you know where to start. I've been reading handbooks and tutorials for over a week.

Return number of rows from pager_query

Hi All

I'm doing a little search module. I use the pager_query function to retrive the results. And I would like to display the total number of results generated by the search.

The easy fix is to make a counter call prior to the pager_query, but since there's a call to find the total number of rows, it would be kindda redundant.

So what I'm asking is: Is there a way to retrieve the total number rows from the pager_query?

Best,
/Johs.

Views exposed filters hierarchical display - possible?

Hello,
I am building a website with lots of media products on it, which should be sort- and filterable.

I have set up one content type with CCK for each media type.
These content types all have different taxonomy vocabs assigned to them, as well as special CCK fields. (Example see below.)

I have created a bunch of nodes using my CCK custom content types. Now I want to create an area, where the user can filter and narrow down his/her selection of media.

I have built this filter area with 'Views' module, using exposed filters.

---

I have the following problem:

Is it possible with views.module that you start with one drop down selection menu (in my example taxonomy vocab 'Media type'), and depending on what the user selects there, he/she is presented with the next selection of dropdown menus?

**Set-up:**
A)
- Taxonomy vocab 'Media type'
--- Taxonomy term 'Book', automatically assigned to content type 'Book'
--- Taxonomy term 'Magazine', automatically assigned to content type 'Magazine'
--- Taxonomy term 'Video', automatically assigned to content type 'Video'

B)
- Content type 'Book'
--- Taxonomy vocabulary 'Book type', assigned to content type 'Book'
----- Taxonomy term 'Hardback'
----- Taxonomy term 'Paperback'

- Content type 'Magazine'
--- CCK field: ISSN number

- Content type 'Video'

from where i can start for module development

i am looking to start for module development so from where i can start for module development
please help me

How to proceed - Registration extension

Hi, I wrote a very basic extension to the registration process, that adds a role (unfortunatly the role has to be created upfront and is hard coded with ID3 at the moment) to users that match to the allow email pattern in the access rules.

Here is the module:

<?php
// $Id$

/**
* @file
* Assignes specific Users to a role on registration
*
*/

/**
* Implementation of hook_user
*/

function pimpmyreg_user ($op, &$edit, &$user, $category = null) {

if ($op == 'insert') {

how to create module in drupal

hi,
how to create new module in drupal.am new to drupal so i want the details from start.
how to include the php files in modules.what are the files we have to include in that new
module.

thank u

Regards
altoo.

Pages

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