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

Multiple Databases

Hello.

Suppose that my module needs to work with Drupal Database (A) AND some remote database (B) simultaneously.

Now, if I used regular PHP MySql functions, I would supply link identifiers as last argument in each function.

Eg

Form elements using span instead of div tags

Hello,

I'm creating a new module and I'm wondering if there is a way to use span tags for a group of elements instead of div tags?

For example in my module I define a submit button and a textfield. I have it so I display my form elements above the header (to the far right of the site logo). I would like the submit button and the textfield to appear on the same line. However the submit button appears above the textfield.

New node type with only one item per user

hello

i am developing module for our laboratory members profiles. i dont want to use profile module (or usernode) by default, because several actions will be possible with the newly created content. anyway...

the idea is to create a node type. this is not so hard at all, but the problem is, i dont know how to ensure to allow users to create only one content of this type. i tryed to do this with the hook_access for the operation create with the lines like this:

php code into nodes

Hi there,

i wanted to integrate the following code into a node:

<?php
  $sql = 'SELECT cid FROM {comments} WHERE nid = 300';
  $result = db_query($sql);
  $num_comments = db_num_rows($result);
  return "<strong>( $num_comments )</strong>";
?>

(counts the comments of a node)

I choosed the input format PHP, but the code destroys the layout.

Is there a better way to integrate PHP-code into a node without any trouble.
Perhaps to call the code from an extarnal file?

I need module I sent notification of answer

Hello, I need a module that he permit sending me notifications for email of answer of theme of the forum and or of a comment than work with drupal 4,6,9 thanks for his help in advance.

supervised Account and one without supervising at the same time

Hi guys,

I would like to know if it would be possible to manage to get an account supervised by admin for a particular role and other kind of account in which admin does not authorize them. It would be create automatically for other role different to the previous one

Thanks in advance!

/Pablo

Pages

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