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

form.inc not compatible with dynamic form (javascript)

I just created a custom form with hook_form() for a custom node module I'm working on. My custom form includes Javascript that loads options in a second select form based on input from the first. This allows for subcategories which is nice for organization.

Problem is that I have to pass empty options to form.inc for the dynamic part of my form since they are filled in by the javascript.

Tagging Question

I have a module I wrote for managing procedures on our site. It has an free-tagging category associated with it for keywords. I'd like to create a new block that shows all the specific free tags in a cloud that are associated with a specific node/id. It should show the editors entries, and (the part I'm stuck on) also provide a simple drop-box that registered users would see where they can add their own keywords. Those keywords don't need to generate new category pages - just need to appear on the page.

quicktags for users only?

quicktags doesn't have option listed in "access permissions" page... is there a way to set it up so only authenticated users see the quicktags?

I messed with this but didn't have any luck.

<?php
global $user;
if(!$user->uid)
  return;
?> 

any clues?

Need some help on adding a record

I have to admit that I am a little lost on how to create a form then create a database record with the contents of the form. Hee is what I have created:

function poker_adminl() {
$form['league_add'] = array('#type' => 'fieldset', '#title' => t('Create a new poker league'));
$form['league_add']['league_name'] = array('#type' => 'textfield', '#title' => t('League Name'), '#maxlength' => 30 );
$form['league_add']['league_description'] = array('#type' => 'textfield', '#title' => t('Description'), '#maxlength' => 30 );

Is there a way to integrate PHPMychat into Drupal 4.7 beta 5?

Hi fellows

Is there a way to integrate PHPMychat into Drupal 4.7 beta 5?

I have already looked for in this site and on the internet, however I haven't found anything at all.

Someone knows wheter is possible or not?

Thanks

file, file_revisions and the list column

Hello,

I'm just after some quick clarification of the file tables. Specifically I'd like to know how the revisioning system comes into play when showing the attachment on a page. It's the file_revisions table that seems to control if a file is listed, but I cant seem to find an explanation as to how it works. I've even checked upload.module for comments.

It appears that if file_revisions.list == 0 then the file isn't displayed. But if it's anything else (like 1, 2, 10 or 46 etc), it is.

Any hints?

Thanks
Adam

Pages

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