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

unwanted escaping for HTML attributes

Hi!

I've been trying to add HTML attributes to table rows. The attributes are for JavaScript events handling, i.e. onclick, onmouseover, etc.

The problem appears when I want to assign a JavaScript function to treat the event. So if I use somehing like:
onclick="function('param', val1, val2)" the single-quotes around my firmst param get HTML escaped, because of the chain of functions that affects each of the attribute I pass:
theme() - theme_table() - drupal_attributes() -check_plain() - htmlspecialchars() .

indexing personal user info

HI!
Would like to know if there's a way to index real user name, not a login name? so when you search for a person you write name or last name, not login.
tnx

Getting the node information of the current user?

I'm working with the location module and I want to get a link that will give directions from the user's home address to the address of a location (associated with a node). I can get the node location, but I don't know how to get any of the current user's info. I've looked through most of the Drupal API, past forum posts, etc, and found nothing. Any ideas? Thanks.

multi update query

Hiya to all!

I got one question about a webform module. Well it's not about a module but about query inside module:

this is the following query:

  db_query("INSERT INTO {webform_submitted_data} (nid, sid, name, data) ".
           "VALUES ".implode(', ', $sqlstring), $values);

where $sqlstring and $values are set before like arrays:

...
    $sqlstring[] = " (%d, %d, '%s', '%s') ";
    $values[] = $node->nid;
    $values[] = $sid;
    $values[] = $key;
    $values[] = $value;
  }
...

So the actuall query would look something like this:

 INSERT INTO webform_submitted_data (nid, sid, name, data) VALUES  
(84, 1, 'Name', 'name') ;  
(84, 1, 'Last Name', 'lastname') ; 
 (84, 1, 'I have my own bag/tent to sleep in?', 'Nope, you''ll have to find me one') ;  
(84, 1, 'comments', 'where are we going from?') ;  
(84, 1, '__userid', '3') ;  
(84, 1, '__timestamp', '1119198796') ;  
(84, 1, '__remotehost', '193.198.8.211') ;  
(84, 1, '__useragent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3') 

That works fine for mysql, i guess, but for Postgresql I have to write INSERT INTO every time i want to insert something. Is there a way, a function like db_query but for multiple queries? Didn't find any in documentation.

I can just write a loop for 8 queries, but than I'd had to inolve transactions maybe?? Can anyone tell me how to solve this problem quick and ellegant, that would work fine for PG and MYSQL?

relationship between include folder and modules folder

How is de relationship between elements of include folder and modules from modules folder? I think that are created object modules by elements of includes folder. It is OK?

Can admin do everything on his own site?

Hi,

During writing my test for sotry_access function, I realized that admin can't delete or edit node, which isn't belonging to him.

Am I right? I thought that he can do everything... I'm not familiar with Drupal, yet but I'm investigating it :-) like Sherlock Holmes :)

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core