function ds_remove_fields_form

cis7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')
cle7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')
elmsmedia7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')
icor7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')
meedjum_blog7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')
mooc7 ds.fields.inc ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete')

Confirmation delete or revert form.

2 calls to ds_remove_fields_form()
ds_delete_field_confirm in sites/all/modules/ulmus/ds/modules/ds_ui/includes/ds.fields.inc
Menu callback: Confirmation custom field delete form.
ds_revert_field_confirm in sites/all/modules/ulmus/ds/modules/ds_ui/includes/ds.fields.inc
Menu callback: Confirmation custom field delete form.

File

sites/all/modules/ulmus/ds/modules/ds_ui/includes/ds.fields.inc, line 424
Administrative functions for managing custom fields for every entity.

Code

function ds_remove_fields_form($form, &$form_state, $field = '', $action = 'delete') {
  ctools_include('export');
  $custom_fields = ctools_export_crud_load_all('ds_fields');
  if (isset($custom_fields[$field])) {
    $field = $custom_fields[$field];
    $form['#ds_field'] = $field;
    return confirm_form($form, t('Are you sure you want to ' . $action . ' %field?', array('%field' => $field->label)), 'admin/structure/ds/fields', t('This action cannot be undone.'), t(drupal_ucfirst($action)), t('Cancel'));
  }
  else {
    drupal_set_message(t('Unknown field'));
    drupal_goto('admin/structure/ds/fields');
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.