CVS edit link for heronog

The company I work for has the need to integrate a third party video hosting service to our websites.

Since we use Drupal to build our websites, and this provider is growing fast, we decided to step forward and create a module that meets our needs and hopefully, others

I will be integrating Ooyala content with Drupal 6 in a module that extends CCK, we have integrated functionality to make it work with Views, Thickbox and ImageCache.

there is a discussion and published code here http://drupal.org/node/355690

and we have several sites working with this module:

http://www.multimedios.tv
http://www.laaficion.com

Also, Ooyala themselves have been participating and coordinating their clients who show interest in this module and will be contributing with reviews, and other resources as needed.

In the past, this application has been denied because of non-compliance with the Drupal Code Standards, but it has been fixed now.

CommentFileSizeAuthor
#4 cck_ooyala.zip25.63 KBheronog
#1 cck_ooyala.zip25.74 KBheronog

Comments

heronog’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new25.74 KB
quicksketch’s picture

Hey there Herón, I reviewed this module over the weekend but it looks like there's still a bit to clean up.

  • Indentation is still off, such as this:
      $form['cck_ooyala_global_pcode'] = array(
        '#type' => 'textfield',
      '#default_value' => variable_get('cck_ooyala_global_pcode', ''),
      '#title' => t('Ooyala Partner code'),
      );
    
  • A lot of functions are missing PHPdoc.
  • Where there is PHPdoc, it's not formatted properly.

However I'd like to say that this module is necessary in Contrib, rather than merging with existing solutions. I had previously thought that the best approach for Ooyala integration was integrating with Embedded Media Field. However Emfield does not support actually uploading videos at all, which is a central feature of this module. You could think of the Ooyala module as being similar to Flickr module, just because Emfield can embed Flickr photos, doesn't mean that it is a full-featured Flickr solution. Considering Drupal offers absolutely no integration with Ooyala currently, this module will be a big step up.

There are still quite a few things I'd like to see improved in the module, but I'd like to have an official home for filing issues rather than sending .zip files back and forth via e-mail or in a forum post (for example). Considering that Henonog has already been responsive and supportive of users trying to use his externally hosted module, I think that he'll continue doing so as a module maintainer.

KentBye’s picture

There are indeed some coding standards clean-up required for this module to be ready for prime time. However, I would lobby for the CVS application to be approved because we have some time and resources available to help get the module ready for prime time and it'd be easier to do that through the issue queue rather than -- as Nate said -- pass the zip file back and forth until it's ready for an initial commit.

heronog’s picture

StatusFileSize
new25.63 KB

Yeah, documentation is off completely, and some indentation needs work. During my initial review of the code I found out that it actually required some more work than a few indentation fixes. but this code was actually a "proof of concept" that stuck into production, not an excuse but that's where it comes from.

I'm not really all that happy with the result, as it pollutes the "pure text" fields with rendering options that are not adequate, also the workflow is off, it does not take into account the future updates to the node and does not handle multiple videos.

What's more, we don't have a lot of flexibility with the backlot labels and channels are completely ignored.

In any case, it works and satisfies the use case we intended, there's even some things that I think are done the right way, and some others that just need to be like that due to limitations in the ooyala technology.

I am uploading a slightly modified version with some fixes to the parts Nate points out. I checked other files and only found one more file where this pattern was present. I also removed the file LICENCE.txt as it is added by the system.

coder module isn't finding anything, so I guess the obvious problems are fixed, I'm still working on the documentation part.

quicksketch’s picture

Hm, better but still off in all kinds of places. You might try making Coder pick up "Minor" issues instead of the default "Normal", perhaps it'd find more problems yet.

I'm not really all that happy with the result, as it pollutes the "pure text" fields with rendering options that are not adequate.

Coding-standards aside, I think this is actually the biggest problem and certainly something that would need fixing before making an official release.

avpaderno’s picture

Status: Needs review » Needs work

The code still needs to be formatted as the coding standards reports.

  include(drupal_get_path('module', 'cck_ooyala') . "/ooyala_partner_api.inc");

include is not a function: the parentheses are not obligatory. The code should then probably call module_load_include().

  $tag = module_invoke('taxonomy', 'get_term', $tag_id);

That is conceptually not correct; taxonomy_get_term() is not a hook, but a plain function.
I know that now it doesn't change anything, but there is a proposal to use a different way to name the hook; if that is going to be changed, module_invoke('taxonomy', 'get_term', $tag_id) would probably call taxonomy_hook_get_term(), or taxonomy__get_term(). Still it is not clear why to call module_invoke() in this case, when it is easier to directly call the function (considering also that Drupal 7 dropped the functions registry).

quicksketch’s picture

KiamLaLuno, as I noted above there's plenty of other problems besides the ones you just pulled out. I'm hoping to work with heronog on fixing these problems. However I would prefer that we work them out in an actual project, rather than be forced to upload 20 zip files here in a preliminary back-and-forth. I can assure you we'll get this module fitting into coding standards, I'm quite familiar with them.

If you can approve this account we'll work out the issues in the project queue like any other project.

avpaderno’s picture

Status: Needs work » Fixed

It seems reasonable. I am going to approve this application.

quicksketch’s picture

Thanks Kiam!

heronog’s picture

thanks. we'll get this module up and running as fast as we can.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Component: Miscellaneous » new project application
Assigned: Unassigned » avpaderno
Issue summary: View changes
Status: Closed (fixed) » Fixed

I am giving credits to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.