Project:Drigg External Vote Button
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I got this after i tried to enable module and save module configuration:

Parse error: syntax error, unexpected $end in sites/all/modules/drigg_external/drigg_external.module on line 163

Please develop 5x version - that's really nedded module.
Thx for Your work!

Comments

#1

I got the same error,but I have fixed it.This error is due to sytax error. A "}" is missing on line 54,so just add a "}" blew line 54 ,then the correct codes should as below:

function drigg_external_menu($may_cache) {
$items = array();
if ($may_cache) {

$items[] = array('path' => 'drigg_external/display_button',
'title' => t('Drigg External - Show external vote button'),
'callback' => 'drigg_external_display_button',
'access' => user_access('access drigg_external'),
'type' => MENU_CALLBACK,
);

return $items;
}
} // add this "}" :)

#2

Thank you!

I had the same problem and solved it with your suggestion!

marco

nobody click here