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

hook_form and upload module

I'm creating a node module that that takes advantage of the core Upload module. Simply put the node will retrieve files from the user and then send these files on to another server. Sending the files to another server is handled via a Java program that processes the files based on several options.

So the fields of my node will be a title, attachments, and all the options the Java program desires.

How to call the frontpage from a module?

I need to show the frontpage from a module.

--------------------------------------
function referral_menu($may_cache) {
$items = array();

$items[] = array(
'path' => 'referral/'.arg(1),
'title' => 'referral',
'callback' => 'referral_report',
'callback arguments' => array(arg(1)),
'access' => user_access('access referral'),
'type' => MENU_CALLBACK
);

return $items;

}

Module for importing Microsoft Word documents?

I ran across this thread - http://drupal.org/node/112530 - but haven't seen a module that converts Word documents to articles/book pages/etc. complete with formatting. Is anything in development or is there another solution I can implement for my users?

Thanks

Need to limit node creation and upload for a user role

I've got a little problem, and I haven't yet found a suitable solution in the forum. I have a user role, and I want to limit the amount of nodes he/she can have online to 1. That one node can be updated, and deleted, and if deleted, the user role can create a new one. This is for a custom content type my module creates.

Node_alter_form submit

Hello

I am trying to build a url query string using node objects when a alter_form submit button is pressed. To do this I use a function called elertz_form_submit however I can't seem to read any of the node objects. I found out how to do it the form_alter by doing:

$node = $form['#node'];
$title= $node->title;

This does not work with my submit function.

Am I doing something very stupid?

Thank you

David


function elertz_form_alter($formid, &$form) {
$form['#submit']['elertz_form_submit'] = array();

return;
}

function elertz_form_submit($form_id, $form_values) {

$elertz_update_url = variable_get('elertz_update_url',"");
$webmaster_id = variable_get('elertz_webmaster_id',"");
$elertz_fire_password = variable_get('elertz_fire_password',"");
$elertz_notification_description = urlencode(variable_get('elertz_notification_description',""));
$schema_id = variable_get('elertz_schema_id',"");
$server_name = $_SERVER["SERVER_NAME"];
$url = $server_name.'?q=node/'.$node->uid;
$node = $form_values['#node'];
$title= urlencode($node->title);
$elertzfirestring = $elertz_update_url
.'?webmaster_id='
.$webmaster_id
.'&password='
.$elertz_fire_password
.'&url='
.$url

calendar.module add event by clicking the date link on the calendar itself

Hi all,

has anybody got some experience with expanding the calendar.module in such a way that one can enter a new event by just clicking the date link on the calendar itself?

Pages

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