function feedapi_simplified_form in FeedAPI 6
Same name and namespace in other branches
- 5 feedapi.module \feedapi_simplified_form()
This is shown instead of normal node form when the simplified form is chosen at the settings
1 string reference to 'feedapi_simplified_form'
- feedapi_block in ./
feedapi.module - Implementation of hook_block().
File
- ./
feedapi.module, line 761 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function feedapi_simplified_form($form_state, $type) {
$form['node']['#tree'] = TRUE;
$form['node']['type'] = array(
'#type' => 'hidden',
'#value' => $type,
);
$form['url'] = array(
'#title' => t('Feed URL'),
'#type' => 'textfield',
'#size' => 25,
'#required' => TRUE,
'#maxlength' => 2048,
);
$form['add'] = array(
'#type' => 'submit',
'#value' => t('Add'),
);
return $form;
}