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

several instances of tinyMCE

Drupal 4.7.0, tinyMCE 2.0.6.1

Trying to use several instances of tinyMCE on one page
with modules like "excerpt". The data from "excerpt" textarea
is not submitted. I heve similar results with "home made" modules
which use several textareas substituted with tinyMCE.

tinyMCE works fine when I only use it in one textarea on page.
If i disable richtext editor in all textareas but one, everything
works fine as well.

Please help. Need several textareas with rich text editor.

validate hook_settings()

Hello,

I was wondering how i could validate the settings a site administrator makes in the hook_settings().
For a module i'm creating, the admin can choose from dropdownlists containing numbers, but the first selected number should always be smaller then the second.

Now i put some checks in hook_validate(), but the code never gets executed.
How would i go about validating the settings a site administrator made?

BTW i'm using Drupal 4.6
Kind regards

GLOBALS through AJAX

I'm trying to create a php block that uses prototype.js's Ajax.Updater function to execute a php file. however the php file doesn't seem to be able to access the globals variables $user and $active_db.

If I print_r($GLOBALS) I get a [GLOBALS] -> Array *RECURSIVE* which I know means that the GLOBALS variable is referencing itself, but not sure why or how I can just get access to the the $user and $active_db objects.

Any ideas? Less then 2 weeks on drupal, 3 years on PHP.

buddies, how can browse content(blog, book, image) by user, which module should be used?

I d like to create a function which brwose contect by user list , i.e. click the user name any content the user commited will be displayed . Which module i can use? or any different way i can use.

Many thanks in advanced.

Franz

Forms API Validation

Good morning cats,

I've been battling with validation today. I have a #validate function attached to my form, which checks to see if the 'Province' selected is within the legal range of values for the 'Country' selected. This can't be handled by the automatic validation code, because I use javascript to populate the Province field each time the Country field is changed.

Within my validation function, I validate.

Change the directory to upload from diferent flexinode (see post)

(please sonrry for my poor english)

I´m trying to modify something to flexinode so from diferents flexinode an attach upload is save on diferents directories....

It is posible ? what i would modify ??

thxx

Pages

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