function node_kaltura_entry_install in Kaltura 6
Same name and namespace in other branches
- 5 plugins/node_kaltura_entry/node_kaltura_entry.install \node_kaltura_entry_install()
- 6.2 plugins/node_kaltura_entry/node_kaltura_entry.install \node_kaltura_entry_install()
File
- plugins/
node_kaltura_entry/ node_kaltura_entry.install, line 9
Code
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']);
}
}