Can i rename Feedback in e.g. Contact ?

Comments

seandunaway’s picture

The feedback image that is supplied can not be modified to say Contact.

However, it is designed so that you can create an image and put in whatever you like.

Something like this:

/**
 * Implements hook_preprocess_feedback().
 */
function mymoduleortheme_preprocess_feedback($&vars) {
  // Replace image.jpg with full path to new image.  Default is base_path() . drupal_get_path('module', 'feedback_simple') . '/feedback_simple.gif'
  $vars['image'] => 'image.jpg';
  // Replace 0px with new image dimensions.
  $vars['height'] => '0px';
  $vars['width'] => '0px';
}

Easy!

seandunaway’s picture

Status: Active » Fixed
seandunaway’s picture

Title: Feedback in whatever » Rename the Feedback tab OR change the Feedback tab image

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

brightbold’s picture

@Babalu —

Here's how I accomplished this. I put the following code in template.php in my theme:

/**
* Implements hook_preprocess_feedback_simple().
*/
function MYTHEME_preprocess_feedback_simple(&$variables) {
  $variables['image'] = drupal_get_path('theme', 'MYTHEME') . '/images/feedback.png';
  $variables['height'] = '150px';
  $variables['width'] = '34px';
  $variables['alt'] => t('Feedback');
  $variables['link'] = 'tell-us-what-you-think';
  $variables['top'] = '65%';
}