function cer_update_form in Corresponding Entity References 7.2
Same name and namespace in other branches
- 7 cer.admin.inc \cer_update_form()
Allows batch updating of existing entities.
1 string reference to 'cer_update_form'
- cer_menu in ./
cer.module - Implements hook_menu().
File
- ./
cer.admin.inc, line 108 - Administrative functionality, separated for performance purposes.
Code
function cer_update_form($form = array(), &$form_state) {
$form['type'] = array(
'#type' => 'select',
'#title' => t('Entity type'),
'#required' => TRUE,
'#options' => array(),
'#description' => t('Select the entity type that you want to update.'),
);
foreach (entity_get_info() as $type => $class) {
$form['type']['#options'][$type] = $class['label'];
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}