You are here

function sarnia_entity_delete_form in Sarnia 7

1 string reference to 'sarnia_entity_delete_form'
sarnia_menu in ./sarnia.module
Implements hook_menu().

File

./sarnia.entities.inc, line 218

Code

function sarnia_entity_delete_form($form, &$form_state, $server) {
  $form['server'] = array(
    '#type' => 'value',
    '#value' => $server,
  );
  return confirm_form($form, "Are you sure you want to delete the Sarnia entity type associated with this Search API server?", 'admin/config/search/search_api/server/' . $server->machine_name . '/sarnia/manage', "Deleting the entity type will also delete the associated Search API index, and any Drupal field data you have entered on the entities.", "Delete");
}