function slickgrid_clone_form in Slickgrid 7.2
Clone entities form.
1 string reference to 'slickgrid_clone_form'
- slickgrid_get_form in includes/
slickgrid.form.inc - Returns a form to the browser which can then be submitted - avoiding CSRF!
File
- includes/
slickgrid.form.inc, line 85
Code
function slickgrid_clone_form($form, $form_state, $entity_type, $entity_ids) {
$form = slickgrid_delete_form($form, $form_state, $entity_type, $entity_ids);
$form['description_text']['#markup'] = '<p>' . format_plural(count($entity_ids), t('Do you want to clone the selected row'), t('Do you want to clone the @num selected rows', array(
'@num' => count($entity_ids),
))) . '</p>';
$form['actions']['do']['#value'] = t('Clone');
return $form;
}