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

get form_file() information

Hello,
I have a module with a function which makes a form with a file element:

$form .= form_file(t('Attach'), "filename", 50);
$form .= form_hidden ("form_field_referer", $_SERVER[HTTP_REFERER]);
$form .= form_submit (t("Send Message"), "op", $edit['op'] );
$output .= theme("box", $title, $message . form($form, "post"));
return $output;

Impossible to change the title of a module

Hi,

I've got a weird bug with my little module. I've implemented a few hooks such as hook_menu, hook_perm, hook_access and hook_page, added a few specifics function and that's about all.
The bug I have is that whatever value I give to the "title" in the menu hook, I always get the same string : Booking (which was the title I gave the very first time I put my module online). I also can not give a translation to this title (the website is designed to be french and english).

How to create new collection of products with subproduct?

Hello,

I try to use the E-Commerce package and I try to create the new collection of products with subproduct, eg.:

Apparel product:

  • Coke (nid: 14)
  • Hamburger (nid: 26)

Collection of products:

  • Hamburger menu. This product contains the following items:
    • Coke (nid: 14)
    • Hamburker (nid: 26)

and I try to create the product variation for eg. "menu size":

Surcharge percent value, possible?

Hello,

It's possible using surcharge value in percent, in E-Commerce module?

Like:

Product variations: Price
Attribute:

  • Variation: Normal portion
    • Price: 0.00 (the result price e.g.: $100)
  • Variation: Small portion
    • Price: *0.75% (the result price e.g.: $75)

Thx, Paul

form date

Hi,

I am using the 'date' form element. But i need some info on how i can manipulate this. More specifically i want to know how I can rearrange the different select boxes (e.g. first the day then the mont and then the year). And the select boxes appear each on newlines, is there also a way to put them al on the same line.

Thx !

P.S.: I find it quite hard to find substantial developpers info on drupal. Am I overlooking something ? I use api.drupal.org and some parts of the handbook.

Pop-up windows using Tiny MCE

I am developing a module, in which the administrator part should have the ability to open a pop-up window, when the user clicks a link. This pop-up window should contain a textfield. The problem is: I use the TinyMCE WYSIWIG editor. How do I make sure that this applies to the text field in the pop-up window too?

By the way, does anyone know how to assign the properties of a pop-up windows(width, height, visibility of adress field etc.)?

Pages

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