Just occurred to me a way to do that redirection, I think this is the definitive code:
<?php
function cust_disable_posted_item($item) {
$dItem = new ItemActions(false);
$dItem->disable($item['pk_i_id']);
osc_add_flash_ok_message('Your ad will be published after admin\'s approval');
osc_redirect_to(osc_base_url());
}
osc_add_hook('posted_item', 'cust_disable_posted_item');
osc_add_hook('edited_item', 'cust_disable_posted_item');
function cust_approved_item_mail($id) {
$eItem = Item::newInstance()->findByPrimaryKey($id);
View::newInstance()->_exportVariableToView('item', $eItem);
fn_email_new_item_non_register_user($eItem);
}
osc_add_hook('enable_item', 'cust_approved_item_mail');
?>
Regards