Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
I've downoladed and installed the zip of some extra services, included weibo, on my D7. However when I try to activate the module on D7, it says there's a syntax error in teh code (of weibo service). The code is following:
/**
* Implements hook_menu().
*/
function extra_services_menu() {
return array(
'admin/config/services/service-links/widgets/weibo-share-button' = array(
'title' => 'Weibo Share Button',
'page callback' => 'drupal_get_form',
'page arguments' => array('weibo_share_button_service_admin'),
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_TASK,
'file' => 'extra_services.admin.inc',
),
);
The error says it is expecting a ")" instead of "=" on the row 'admin/config/services/service-links/widgets/weibo-share-button' = array(
This prevents weibo service to work.
Regards, K.
Comments
Comment #1
michaelmol CreditAttribution: michaelmol commented'admin/config/services/service-links/widgets/weibo-share-button' = array(
should be
'admin/config/services/service-links/widgets/weibo-share-button' => array(
Notice the > sign.