I tried to add a decimal field with Hangouts but got a couple of "undefined function" errors with hangouts_get_icon_images() and hangouts_get_image(). After inspecting the code, I found the following:

1. In hangouts.module, Line 83 was coded as below:

module_load_include('inc', 'hangouts', 'includes/hangouts.inc');

It appears that it should have been without the ".inc" at the end:

module_load_include('inc', 'hangouts', 'includes/hangouts');

2. In function hangouts_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {}, the following was missing:

module_load_include('inc', 'hangouts', 'includes/hangouts');

After making the above corrections, the module started working correctly for decimal field.

I don't knwo how to make a patch but it would be great if the owner can make the above corrections in a new release.

Thank you!

Comments

  • Maxilver committed ec704d5 on 7.x-1.x
    Issue #2408295 by qmhao99: Incorrect module_load_include() function...
adci_contributor’s picture

Status: Active » Fixed

Hello! Thank you for your helpful report.
Bug is fixed now. Please, check out our last release.

Thanks you again!

Status: Fixed » Closed (fixed)

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