You are here

node_kaltura_entry.install in Kaltura 6

File

plugins/node_kaltura_entry/node_kaltura_entry.install
View source
<?php

/*
 * @file
 * Installation process for kaltura entry node
 *
 */
function node_kaltura_entry_install() {
  if (module_exists('taxonomy')) {
    $edit['nodes'] = array(
      'kaltura_entry' => 1,
    );
    $edit['name'] = t('Kaltura Media Tags');
    $edit['description'] = t('the tags given by the user via flash widget, as well as the tags imported from external sources (youtube, flickr , etc\') will be saved as part of this drupal taxonomy. These tags will be presented to the users, and could be used to create playlists.');
    $edit['help'] = t('');
    $edit['multiple'] = TRUE;
    $edit['required'] = FALSE;
    $edit['tags'] = TRUE;
    $edit['module'] = 'node_kaltura_entry';
    taxonomy_save_vocabulary($edit);
    variable_set('kaltura_entry_tags_voc', $edit['vid']);
    unset($edit['vid']);
    $edit['description'] = t('this tag directory is intended for administrators and content managers (not end users).  It will allow you to easily categorize the content and create playlists.');
    $edit['name'] = t('Kaltura Media Admin Tags');
    taxonomy_save_vocabulary($edit);
    variable_set('kaltura_entry_admin_tags_voc', $edit['vid']);
  }
}
function node_kaltura_entry_uninstall() {
}