if ( isset( $_REQUEST['wpsc_admin_action'] ) &&
($_REQUEST['wpsc_admin_action'] == 'delete_file') ) {
add_action( 'delete_attachment', 'wpsc_delete_file_text' );
}
function wpsc_delete_file_text($postId){
if(isset($_GET['product_id']) && isset($_GET['file_name']))
{
delete_post_meta($postId, "_wpsc_product_file_text");
}
}
--
You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
To post to this group, send email to wordpress-e-c...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.