See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

How to add javascript correctly?

Greetings,

I'm creating a filter module for guitar tabs. This module also has a javasacript editor to create tabs.
My module has several js files which I want to load. My module implements hooks _help, _filter_tips, _filter, _quicktags_insert and _menu.

Where should I call drupal_add_js() function to add my js files? The only place which is working is hook_menu, but in this case js files will be loaded on every page which is bad!

Important: js files should be loaded only if there are textareas with quicktags toolbar enabled.

setlocale and Windows

As far as I've found, there's no concept of ru_RU.UTF8 locale on Windows server. That means no module can format the date right way! My solution follows the well known practice: use iconv to convert from cp1251 to utf8.

Newbie help - How do I change this function to output an html box instead of static text

I am working with the subproducts module and I need to make a very simple change to the function, but everything I have tried is not working. I need to change the price column to be a text field instead of static text, so it looks like the Stock column. This is the function, from the subproducts.module:


function theme_subproducts_generate_wizard2($form) {
$header = array(array('data' => ''));
foreach (element_children($form['header']) as $key) {
$header[] = array('data' => form_render($form['header'][$key]));
}
$header[] = array('data' => t('Price'));
$header[] = array('data' => t('Stock'));
$rows = array();
$i = 0;
foreach (element_children($form['permutations']) as $key)
{
$rows[$i] = array(array('data' => form_render($form['permutations'][$key]['use'])));
foreach(element_children($form['name'][$key]) as $aid)
{
$rows[$i][] = array('data' => form_render($form['name'][$key][$aid]),'align' => 'center');
}

// I want to change the price row below to display a text field exactly the same way it is displaying the 'stock' field.
$rows[$i][] = array('data' => form_render($form['price'][$key]));
$rows[$i][] = array('data' => form_render($form['permutations'][$key]['stock']));

$i++;
}
$output = form_render($form['help']);
$output .= theme('table', $header, $rows);
$output .= form_render($form['submit']);

Auto email on My account EDIT

I want to send an auto email to the user when his account information is edited(by him or anyone else).

Does anyone has any ideas about how this can be implemented?

Thanks in Advance...

Separate content from structure in the db scheme?

I've been struggling to use a development staging site as a safe methodology for a public drupal site. Why 'struggling'? Because so much of the design of the site, as opposed to the posted content, is sitting in the database along with the content.

A few modules, like 'views', support the concept of exporting a complex object from one site and moving it to another. It seems to me that there could be a more general solution involving a separation of the database scheme into 'structure' and 'content' areas.

XHTML / CSS compliance

I would like to suggest that drupal.org adopt, as a standard, requiring XMTML and CSS compliance for the core and for all modules posted on the drupal.org site. If it's considered impractical to state that all modules must pass, at least could we have a policy that module authors must state their compliance or lack thereof?

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core