Automake forum on node creation with rules I'm desperately trying to programmatically add a new forum (in the 194 tid specific container) on node creation with rules. 

I run php script when adding new node with rules, but I'm really newbee with php. I'm trying to use form_forum_form and form_forum_submit putting this variables :

require_once 'modules/forum/forum.admin.inc';

$autoform = array( 
     'name' =&gt; '[node:title]',
    'description' =&gt; 'Forum du projet [node:title]',
    'tid' =&gt; 194,
    'weight' =&gt; 0,
);


$form = forum_form_forum($form, &amp;$form_state, $edit = $autoform);  
forum_form_submit($form, &amp;$form_state);
print_r(drupal_get_messages());


This link doesn't helped me and there is nowhere on the web where the answer is explicitely given.
How to programmatically create forums and containers (not forum topics)?

Thanks for helping
There is no need for any custom php here. Just the below steps.

In Rules actions,


Action 1: "Create a new entity > Taxonomy term"
Enter your title based on the created node and put it in the forum taxonomy
Action 2: "Set a data value > [entity-created:parent], Value: 194"