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

Dynamically theming text

The module I'm currently working on is supposed to dynamically put some text on a page. I was wondering how I could place this in <p> or <strong> tags without using a theme function for it or hardcoding it.

Auto counter?

Hi,

I have to create a library site.
Now every book has an ID number.
Now I would need a module for CCK which sets the ID numbers automatically.
Is there any module able to do that?

I took a screenshot as an example.

Screenshot

The Book ID should be automatic.

I still don't understand drupal 5 forms API !

Hello
there something I don't get in forms API.
When I create the form like below, the link test/modify is used to show up the form, but when I hit ok
I am redirected whith the same link which reinitialize the form and only after that the submit procedure is called
with empty values.

I've tried to move on myself in the forums but I don't find any suggestion.

Thank you for help !!!

jj cambefort


function test_form_proc() {
$form = array();

$form[ 'test' ] = array (
'#type' => 'textfield',
'#size' => 40,
'#maxlength' => 8,
'#title' => 'test',
'#value' => "{$edit[ 'test' ]}",
);

$form[ 'societe' ] = array (
'#type' => 'textfield',
'#size' => 40,
'#maxlength' => 30,
'#title' => 'societe',
'#value' => "{$edit[ 'societe' ]}",
);

$form[ 'submit' ] = array (
'#type' => 'submit',
'#value' => 'ok',
'#submit' => TRUE,
);

return $form;
}

function test_form() {
return drupal_get_form( 'test_form_proc' );
}

function test_form_proc_submit( $form_id,$form_values ) {
return 'test';
}

function test_page() {
$fonction = arg( 1 );
switch ( $fonction ) {
case 'modify':
$output = test_form();
break;
default:
$link_modify = l( 'modify',"test/modify",array( 'title'=>'modify') );

OG module question!

Hi,

I am creating a new module, that has some feature like OG module.

Default behavior of OG module:

If you create a new group like 'test site', after successfully creating the new group, the page will be redirected to 'q=test-site'.
Similarly if you delete this new group and again add this group as 'test site', after creating the group, the page will be redirected to 'test-site-0'.
Again if you delete this group and add a new group with same name 'test site', the the page will be redirected to 'test-site-1'

PDF Downloads Rights Managed

Does anyone know a way to do the following with Drupal?

1. Sell a digital asset, specifically PDF (I guess ecommerce module)?
2. Encrypt the PDF automatically with a key such as the recipient's email address as the password?
3. Provide a limited-time download link to get the unique encrypted file above?

I know that savvy users can break the encryption scheme of most PDFs, but for most users this would stop wide redistribution of the published work.

Ryan

About function calls

Hi guys. Is it possible to see all the function calls occured while viewing,inserting... a node.I mean all the hooks that are called in order to render the page with the required data.I have used devel module but it shows only the sql queries. What I need is the actual function calls even though they donot include any sql queries.

thanks in advance

Pages

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