public static function deleteRiverObject($event, $type, $river) {
		$ia = elgg_set_ignore_access(true);

		$guid = InteractionsCache::getInstance()->getGuidFromRiverId($river->id);
		if ($guid) {
			$object = get_entity($guid);
			if ($object) {
				$object->delete();
			}
		}

		elgg_set_ignore_access($ia);
	}
public static function deleteRiverObject($event, $type, $river) {
		$ia = elgg_set_ignore_access(true);

		$guid = InteractionsCache::getInstance()->getGuidFromRiverId($river->id);
		if ($guid) {
			$object = get_entity($guid);
			if ($object) {
				$object->delete();
			}
		}

		elgg_set_ignore_access($ia);
	}
public static function deleteRiverObject ( $ event , $ type , $ river ) { $ ia = elgg_set_ignore_access ( true ) ; $ guid = InteractionsCache :: getInstance ( ) -> getGuidFromRiverId ( $ river -> id ) ; if ( $ guid ) { $ object = get_entity ( $ guid ) ; if ( $ object ) { $ object -> delete ( ) ; } } elgg_set_ignore_access ( $ ia ) ; }
Deletes a commentable object associated with river items whose object is not ElggObject

@param string        $event "delete:after"
@param string        $type  "river"
@param ElggRiverItem $river River item
@return true
Deletes a commentable object associated with river items whose object is not ElggObject