plugins/finder/categories/categories.php
public function onFinderDelete($context, $table)
	{
		if ($context == 'com_categories.category')
		{
			$id = $table->id;
		}
		elseif ($context == 'com_finder.index')
		{
			$id = $table->link_id;
		}
		else
		{
			return true;
		}

		// Remove item from the index.
		return $this->remove($id);
	}
public function onFinderDelete($context, $table)
	{
		if ($context == 'com_categories.category')
		{
			$id = $table->id;
		}
		elseif ($context == 'com_finder.index')
		{
			$id = $table->link_id;
		}
		else
		{
			return true;
		}

		// Remove item from the index.
		return $this->remove($id);
	}
public function onFinderDelete ( $ context , $ table ) { if ( $ context == 'com_categories.category' ) { $ id = $ table -> id ; } elseif ( $ context == 'com_finder.index' ) { $ id = $ table -> link_id ; } else { return true ; } // Remove item from the index. return $ this -> remove ( $ id ) ; }
Method to remove the link information for items that have been deleted.

@param   string  $context  The context of the action being performed.
@param   JTable  $table    A JTable object containing the record to be deleted

@return  boolean  True on success.

@since   2.5
@throws  Exception on database error.
Method to remove the link information for items that have been deleted .