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

Add a node of custom type in action call

Hi

I have implemented some actions and when a particular action is activated by a workflow change ("Submit for evaluation") I
want to create a new node of type "evaluation" which has a field "evalstatus" which is set to "0".

I have no idea how to actually do this properly.
I tried doing a call to

node_save(array('type'=>'evaluation'));

This does put a new node into the node table but what is the correct way to make things propagate into my custom table?

module update to cvs:how to wirte form in table

the old code:

$rows[] = array (
  $row->name,
  form_textfield(NULL, "foo_row->id", $row->foo, 10, 10)
);
$rows[] = array (array ('data' =>  form_submit("save") , 'colspan' => '11'));
$pager = theme('pager', NULL, 10, 0, tablesort_pager());
if (!empty ($pager)) {
	$rows[] = array (array ('data' => $pager, 'colspan' => '11'));
}
$output = theme('table', $header, $rows);
return form($output);

how to implement this use new form function?

acidfree test page...

I'm using W2k3, php5, mysql4 and apache2.

I just installed drupal and have everything working fine. I've set all of the general settings (with no errors), added/configured modules etc...

I dl'ed and installed filemanager, attachment, and acidfree.
filemanager installed/configured with no errors
attachment (same)
acidfree (same)

I run the acid free test and everything passes except 7.

System file path not properly set or permissions are not right (must be web writeable). Go to admin/settings to configure it.

upload module

Hi,

Iam a newbie to drupal, just now installed.

I dont know how to use the default upload module in drupal. I have setted the configuration of upload module and enabled them.
How to give a page to upload and hook that to upload functionality? do i need to create a page in html to upload, then how to link the upload button to upload functionality. Or do i need to download some other module.

Need: I have to allow some users to upload images(gif and vsd) into the database or directories. And also allow them to view all the images.

Using drupal and ?modules to create a dating site.

Has anybody seen or done a dating site using drupal and additional modules. I would like to create such using standard CRM software and module to add, chat, photos, and mostimportantly monthly subscription payment. Anybody have a suggestion?
Regards
cvc505

how to display special message on logout... (using hook_user() ?)

I am developing a module, and I am trying to display a special bit of content upon user logout.

I know that upon user logout, this is called: module_invoke_all('user', 'logout', NULL, $user);

So in my module I've created a hook function: module_user($type), and checking for $type=logout

Now in that function I have tried displaying my special page with
print theme("page", $special_logout_message);
But that doesn't work.

Also tried drupal_set_message but that didn't work either.

Pages

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