You are here

function cer_bulk_update_form in Corresponding Entity References 7.3

Allows batch updating of existing entities.

1 string reference to 'cer_bulk_update_form'
cer_menu in ./cer.module
Implements hook_menu().

File

./cer.admin.inc, line 85

Code

function cer_bulk_update_form(array $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;
}