Closed (fixed)
Project:
Kaltura
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2009 at 23:56 UTC
Updated:
15 Mar 2011 at 00:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
Zohar.Babin commentedyou have a hook exposed for that.
function kaltura_cw_destination() (kaltura.module)
/*
* function to choose to what URL the user will be redirected to after AddEntry in the CW
*
* This function exposes a hook_cw_destination()
*/
Comment #2
aufumy commentedThanks, I missed that.
How about the simple_editor?
Thanks.
Comment #3
fp commentedHere's a patch that improves a bit the mix creation workflow. It's loosely related to aufumy's request.
It presents the user with the node form, creates the node, updates it with the initial kaltura values, sends the user to the newly created node and finally fires the editor.
I'm pretty new to this module so this may not take into consideration all cases...
Comment #4
fp commentedI realized that the patch also included aufumy's flag patch (http://drupal.org/node/365867).
This patch has it removed.
Comment #5
nad2zen commentedHi,
I am not able to redirect after the Addentry is completed, i define the redirect URL as below
function kaltura_cw_destination(){
$url = url('kaltura/myvideo');
return $url;
}
but no use.
Please some help me!!
Comment #6
davidseth commentedYour function name needs to be different. Look below, just replace the "your_module_name" bit with the name of your custom module and you wil be all set!
Comment #7
EcLipsaL commentedI got a question,
I am a noob with drupal & I am too close to this project and I need a little help.
Where do you add the code to what file?
The your_module_name would be kaltura or ?
And after the contribution wizard is finished instead of going to http://yoururl.com/node/8 say could I make it go to
http://yoururl.com/node/8/edit ?
Like this
function kaltura_cw_destination(){
$url = url('http://yoururl.com/node/$node/edit');
return $url;
}
And if anyone knows how to place the kaltura video comment on the node.
If someone can help me with this it would be highly appreciated.
I also have made a ton of modules into features for Open Atrium including Kaltura, twitter, activity stream and many more.
Comment #8
xurizaemonIs this really RTBC, nad2zen?
Comment #9
univate commentedBased on the comment I would say its not been reviewed.
Comment #10
xurizaemonThis is a fixed support request - Zohar pretty much answered the question in the first comment, and davidseth has provided the complete commentary.
Eclipsal, yes I'm sure you can do something like what you propose in your hook_cw_destination implementation.
Fp, you'd be welcome to resubmit your patch for the 2.x series.
The hook probably wants better namespacing as part of #352670: Function names must be prefixed by the module name or #877444: Module namespacing.
Comment #11
xurizaemonAs I was saying ...