Bharanikumar
Bharanikumar

Reputation: 25733

drupal node_delete change default message success

In Drupal ,

Am using node_delete function for delete the node,

After deleted by default it showing the success message in green color text and white background alt text

How can I change the default delete message to read

Delete Success

Upvotes: 1

Views: 764

Answers (1)

Jeremy French
Jeremy French

Reputation: 12177

You can set string overrides in your settings.php file for a site.

See here:

/**
 * String overrides:
 *
 * To override specific strings on your site with or without enabling locale
 * module, add an entry to this list. This functionality allows you to change
 * a small number of your site's default English language interface strings.
 *
 * Remove the leading hash signs to enable.
 */
# $conf['locale_custom_strings_en'] = array(
#   'forum'      => 'Discussion board',
#   '@count min' => '@count minutes',
# );

I think you would need

    $conf['locale_custom_strings_en'] = array(
   '@type %title has been deleted.'      => 'Delete Success',
 );

Upvotes: 1

Related Questions