Upgrade Yelp module to Drupal 7.
Patch coming...

Comments

jeffschuler’s picture

Status: Active » Needs review
StatusFileSize
new75.93 KB

Used Coder Upgrade, made a number of D6->D7 changes manually to get it working, then ran through Coder Review for coding standards.

jeffschuler’s picture

StatusFileSize
new75.92 KB

Fixed a test of fetchObject's result in yelp.module to avoid getting property of non-object.

@@ -211,7 +211,7 @@ function yelp_node_block() {
   $record = $result->fetchObject();
 
   //if not assigned a yelp block, return FALSE.
-  if (!$record->yid) {
+  if (!$record) {
     return FALSE;
   }
mikemiles86’s picture

Status: Needs review » Closed (fixed)

I've applied your patches, and ported to Drupal 7.

Release should be available shortly.