Thursday 20 July 2006 4:52:46 am
Greetings everyone. I have noticed a couple of mistakes in my post:
1. operation_defenition.php is in kernel/content 2. the code that was added to operation_defenition.php is this
$OperationList['remove'] = array ( 'name' => 'remove',
'default_call_method' => array('kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection'),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true) ),
'keys' => array('object_id'),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_remove',
'keys' => array('object_id','version') ) )
);
And one more thing. In removeobject.php the following line
$contentObjectID = $http->sessionVariable( 'ContentObjectID' );
Gives you something rather strange - %objectID'. Isnt it supposed to be smth like 157? Thank you for your time.
|