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

Linking Database Tables: What's best?

What is the best method of sharing data between multiple tables?

For example say I have a table called {page} with the following columns (id, name, description). And I have another table called {data} which contains a reference to {page}(id). If I were to create, update or delete a row within the {page}table what is the best method for dealing with the information stored in the table {data}?

Node module: _link and _admin functions

I'm in the process of developing a node module and I have a few questions involving menus and admin functions (see below).

To begin with, page shell is the module that I'm trying to write. I've been picking apart other modules to figure out how they allow the various functions to talk to one another. Most modules have an _admin function containing a switch statement which then directs the program to the appropriate function(s). There are a few things about this that are unclear to me.

  1. First where does the argument for the switch statement come from? In other words what is $_POST["op"] doing? (see Example 1)
  2. How does the $op variable relate to the function arg(2)?
  3. What is arg( ) and how do you correctly use it? I see it quite frequently in the path module and other modules, but I'm unsure how to use it.
  4. How are the parameters of each menu item broken down and used with the _admin function? (see Example 2)
  5. How do you update the URL of your admin pages? For example I'll go to an admin page responsible for adding a node. Once I save the data it's suppose to return me to the overview function. It displays the contents of the overview page, however it doesn't display the correct URL. The browser still thinks that I'm on the add page.

Example 1: Path Module _admin function

Directs the flow of the path.module.

Page Shell Module: Node containers

I'm thinking of writing a module for the purpose of creating page shells. The shells would have user defined regions that could hold one or more nodes.

I'm looking for help with this project, if there's anyone who's interested please check out this posting

Thanks, - Strayhand

Weekly archive module

This module creates a weekly archive page and a sidebar block with the links to the pages. As written the block shows up on only node, blog and story pages. Also, on the blog pages it generates links to archives that are limited to those written by the blogger whose page you are viewing.

How to send multiple trackback pings?

Is there a way to send pings to multiple sites using the trackback module? I'm using the stock (non-CVS) version of Drupal 4.4.1 and can't figure out a way to do this.

Thanks!

More weights for webform

I think you could change this somewhere easily but I can't find the code. For example I need more weights for a webform I am making. I know it goes from -10 to 10 But I need about forty text areas.

Pages

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