function feed_import_import_feed_form in Feed Import 7.3
Same name and namespace in other branches
- 7 feed_import.module \feed_import_import_feed_form()
- 7.2 feed_import.module \feed_import_import_feed_form()
Import form
1 string reference to 'feed_import_import_feed_form'
- feed_import_menu in ./
feed_import.module - Implements hook_menu().
File
- ./
feed_import.module, line 2313 - User interface, cron functions for feed_import module
Code
function feed_import_import_feed_form($form, &$form_state) {
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Feed name'),
'#maxlength' => 64,
'#description' => t('This usually is source name.'),
'#required' => TRUE,
);
$form['machine_name'] = array(
'#type' => 'machine_name',
'#title' => t('Feed machine name'),
'#description' => t('This must be unique for each feed and must be not numeric.') . '<br />' . t('Once saved this can not be changed!'),
'#maxlength' => 64,
'#required' => TRUE,
'#machine_name' => array(
'source' => array(
'name',
),
'exists' => 'feed_import_machine_name_exists',
),
);
$form['code'] = array(
'#type' => 'textarea',
'#rows' => 10,
'#title' => t('Enter feed in JSON format'),
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Import'),
);
$form['#validate'][] = 'feed_import_edit_feed_form_validate';
$form['#validate'][] = 'feed_import_import_feed_form_validate';
return $form;
}