Active
Project:
Drigg External Vote Button
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2009 at 23:39 UTC
Updated:
16 Oct 2009 at 07:48 UTC
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
Comment #1
Edward.H commentedI 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 "}" :)
Comment #2
marcolav commentedThank you!
I had the same problem and solved it with your suggestion!
marco