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

Multiple registration pages

I need my drupal installation to have multiple registration pages with different fields on each. Here is my plan:

1.) Create profile fields that are visible on the registration pages.

2.) Create several alias urls for the registration page.

3.) Develop a hook that determines the alias with the arg() function, and then adjusts the register form accordingly by removing certian fields.

DB tables for module

Hi all!

Could not find the exact answer in the module tutorial. Its easy, here it is:

Upon installing my module, I need it to create additional tables in the Drupal database, just this one time.

What is the hook ??

Editable Calendar Module

Hi everyone!

I was just wondering if there exists a module by which I can plug in a normal calendar and allow an administrative user to edit it. I need to develop a website for a yacht captain who will be travelling round the world with his boat and who wants to keep a-kind-of a weblog about his travels and status.

Its more like a kind of agenda whereby the 'administrative' user (the captain of the boat) can edit the calendar and say for example: "from date X to date Y I will be in the bahamas"..

do_search parameters question

Hi - I'm doing a little block to do a sitewide search to find related content to the current page by using the do_search api function and formatting the results. Works great, but I want to only show 5 results. Trying to add a sql LIMIT statement into the $arguments1, but it doesn't seem to work.

Anyone see the error I'm making? it works without the $sqlargs...

Media Gallery - Module Recommendations?

I need a robust and heavily customizable media gallery. With the ability to upload images, videos, and download sections.

Image module is cool, but I'd have to mod it heavily to allow for video features and a download section. It's nice how it automatically resizes images for me, but it's broken for my images with 2880x1440 resolution.

Acidfree isn't yet available for 5.x .. ?

Gallery seems pretty heavy. Any heavily themed Gallery sites out there?

But, what do you all recommend?

Custom form to enter content

I thought I read all the posts regarding Forms and looked through the Forms API so many times already, but still can't get it. I get the actual form rendering in the node, but it doesn't save any content in a database. Any help would be appreciated.

I have a node called New Leads - it actually has all the business leads that come in. I also created a node called Schedule Event and placed a reference field to the New Leads node ID. The goal is to place a small form on the New Leads node page to be able to schedule an evens for the current lead and then show those events in calendar.

The only problem I have is a custom form that I want to place on the new leads page to schedule an event. Here is the code I wrote based on the Form API Quickstart Guide:

Assuming the form appears on the currently viewed new lead node.

<?php
$nid = $node->nid; //nid of current lead
function schedule_event_form($nid) {
// Lead ID
$form['field_lead_id'] = array(
'#type' => 'textfield',
'#title' => t('Lead ID'),
'#required' => TRUE,
'#default_value' => $nid,
'#weight' => -6,
'#description' => t('Lead ID this task belongs to')
);

$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Task'),
'#required' => TRUE,
'#default_value' => $node->title,
'#weight' => -5,
'#description' => t('Task summary')

Pages

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