Change the confirm_form message of an entity made with eck I have an entity created with eck module, and when I want to delete an entity the message is :

Are you sure that you want to delete %id ?

I want to change this message to show me the title of the entity and not the id.
I find where this is implemented, is in the code below in eck.entity.inc file located under the eck module folder:
function eck__entity__delete_form($form, &amp;$form_state, $entity_type, $bundle, $id){
  $path = eck__entity_type__path();
    
  $entities = entity_load($entity_type-&gt;name, array($id));

  $form['entity'] =
      array(
        '#type' =&gt; 'value',
        '#value' =&gt; $entities[$id],
  );

  $form['entity_type'] =
      array(
        '#type' =&gt; 'value',
        '#value' =&gt; $entity_type,
  );

  $form['bundle'] =
      array(
        '#type' =&gt; 'value',
        '#value' =&gt; $bundle,
  );

  $form['submit_redirect'] =
  array(
    '#type' =&gt; 'value',
    '#value' =&gt; &quot;{$path}/{$entity_type-&gt;name}/{$bundle-&gt;name}&quot;,
  );

  $message = t(&quot;Are you sure that you want to delete %id&quot;,
          array(&quot;%id&quot; =&gt; $id));

  $caption = t(&quot;This action cannot be undone.&quot;);

  return confirm_form($form, $message, &quot;{$path}/{$entity_type-&gt;name}&quot;, $caption, t('Delete'));
  
}

Is there a way to change this confirm message without changing the code of this module ?
thanks in advance
You can use hook form alter to change a piece of the form, see this answer by Clive:

https://stackoverflow.com/questions/8111034/altering-title-on-drupal-node-delete-confirmation-form