function ytarget_edit_form in Webform Yandex Goals 7.2
Same name and namespace in other branches
- 7 ytarget.module \ytarget_edit_form()
1 string reference to 'ytarget_edit_form'
- ytarget_menu in ./
ytarget.module - implements hook_menu()
File
- ./
ytarget.module, line 102
Code
function ytarget_edit_form($form, $form_state, $node) {
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
$form['goal'] = array(
'#type' => 'textfield',
'#title' => t('Target ID for form %name', array(
'%name' => $node->title,
)),
'#default_value' => ytarget_get_goal($node->nid),
'#required' => TRUE,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#submit' => array(
'ytarget_set_goal',
),
);
return $form;
}