--- delicious.module.orig 2006-07-24 02:12:36.000000000 +0100 +++ delicious.module 2007-04-02 23:04:49.000000000 +0100 @@ -18,7 +18,7 @@ // SET up AS a define because the API docs say this is likely to change at some point. define(DELICIOUS_BASE_URL, 'http://del.icio.us/'); -define(DELICIOUS_API_URL, 'http://del.icio.us/api/'); +define(DELICIOUS_API_URL, 'https://api.del.icio.us/v1/'); define(DELICIOUS_UPDATE_URL, 'posts/update'); define(DELICIOUS_POSTS_URL, 'posts/all'); @@ -63,7 +63,7 @@ function delicious_link($type, $node = 0 if ($type == 'node' && _delicious_nodetype_applicable($node->type)) { if (variable_get("delicious_crosslink", 0)) { - $links[] = 'uid")); } if ($uname) { - $node->body = _delicious_tag_text($node->body, $uname); - $node->teaser = _delicious_tag_text($node->teaser, $uname); + $node->content['teaser'] = array( '#value' => _delicious_tag_text($node->teaser, $uname), '#weight' => 10); + $node->content['body'] = array('#value' => _delicious_tag_text($node->body, $uname), '#weight' => 10 ); + } } break; @@ -390,7 +394,7 @@ function delicious_page_user($uid = 0) { // function delicious_page_settings() { $uid = arg(1); - $output = delicious_page_settings_form($uid, $existence); + $output = drupal_get_form('delicious_page_settings_form',$uid); return $output; } @@ -467,7 +471,7 @@ function delicious_page_settings_form($u ); } - return drupal_get_form('delicious_page_settings', $form); + return $form ; } function delicious_page_settings_submit($form_id, $form_values) { @@ -528,7 +532,7 @@ function delicious_admin_edit($block = 0 return drupal_access_denied(); } - $output = delicious_block_form($block); + $output = drupal_get_form('delicious_block_form',$block); return $output; } @@ -611,7 +615,7 @@ function delicious_block_form($dbid = 0) // // save block to db // -function delicious_block_edit_submit($form_id, $form_values) { +function delicious_block_form_submit($form_id, $form_values) { if ($form_values['dbid']) { db_query("UPDATE {delicious_block} SET title='%s', users='%s', tags='%s', maxentries=%d WHERE dbid=%d", $form_values['title'], $form_values['users'], $form_values['tags'], $form_values['maxentries'], $form_values['dbid']); } @@ -1025,5 +1029,5 @@ function theme_delicious_user($uid) { } function _delicious_get_link($obj) { - return "$obj->description"; + return "".stripslashes($obj->description).""; }