plugins/finder/categories/categories.php
public function onFinderBeforeSave($context, $row, $isNew)
	{
		// We only want to handle categories here.
		if ($context == 'com_categories.category')
		{
			// Query the database for the old access level and the parent if the item isn't new.
			if (!$isNew)
			{
				$this->checkItemAccess($row);
				$this->checkCategoryAccess($row);
			}
		}

		return true;
	}
public function onFinderBeforeSave($context, $row, $isNew)
	{
		// We only want to handle categories here.
		if ($context == 'com_categories.category')
		{
			// Query the database for the old access level and the parent if the item isn't new.
			if (!$isNew)
			{
				$this->checkItemAccess($row);
				$this->checkCategoryAccess($row);
			}
		}

		return true;
	}
public function onFinderBeforeSave ( $ context , $ row , $ isNew ) { // We only want to handle categories here. if ( $ context == 'com_categories.category' ) { // Query the database for the old access level and the parent if the item isn't new. if ( ! $ isNew ) { $ this -> checkItemAccess ( $ row ) ; $ this -> checkCategoryAccess ( $ row ) ; } } return true ; }
Smart Search before content save method.
This event is fired before the data is actually saved.

@param   string   $context  The context of the category passed to the plugin.
@param   JTable   $row      A JTable object.
@param   boolean  $isNew    True if the category is just about to be created.

@return  boolean  True on success.

@since   2.5
@throws  Exception on database error.
Smart Search before content save method . This event is fired before the data is actually saved .