Hi,
I try to insert some form-variables into the node/edit page.
Maybe something like that:
function ($form_id, &$form) {
...
$form['mytags']['add_new_tag'] = array(
'#type' => 'fieldset',
'#title' => t('add new tag'),
'#collapsible' => TRUE,
'#collapsed' => empty($path),
'#access' => user_access('create pagetags'),
'#weight' => 31,
);
$form[''mytags''][add_new_tag]['tag'] = array(
'#type' => 'textfield',
'#default_value' => $tag,
'#maxlength' => 250,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t("Insert the name of tag $tag_name here."),
);
$form['mytags'][add_new_tag]['value'] = array(
'#type' => 'textarea',
'#default_value' => $value,
'#maxlength' => 1000000,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#description' => t('Insert the content of the tag here '),
);
...
}
Then in mytags_nodeapi(&$node, $op, $arg)
I want top access the variables, but don't know how to.
function mytags_nodeapi(&$node, $op, $arg) {
...
case 'insert':
// here is nothing to find: $node->mytags->add_new_tag['value'];
break;
...
where can I find the variable contents posted from the form?