Closed (fixed)
Project:
FileField Podcaster
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2010 at 14:51 UTC
Updated:
3 Jul 2010 at 15:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
renoproc commentedOk, I've found my mistake :
the admin/settings/ffpc capabilities come with ffpc_channels
ffpc_channels needs to be in the same folder than ffpc, if you want to try it with the lasst ffpc version you need to put some code from ffpc.module file of ffpc_channels into ffpc.module file of ffpc module :
the implementation of hook_perm() and the mplementation of hook_menu(),
in template_preprocess_ffpc_view_podcast_feed(&$vars) function you need to add some lines :
after line $vars['link'] = check_url(url($path, $url_options));
put $channel->link = $vars['link']; // Default link is the views path
after the if($path){...}
put
// Prepare channel data for formatting
$channel->language = $language->language;
$channel->args = array(); // Set by our own hook_ffpc_channel()
// Allow modules to modify/add extra information via hooks
// $channel contains specific key->value pairs for channel data
// the $view is also passed so modules can utilize its data
module_invoke_all('ffpc_channel', $channel, $view);
if (is_array($channel)) {
$channel = $channel[0];
}
replace
$vars['channel'] = format_rss_channel($title, $vars['link'], $description, $items, $language->language, $args);
with
// module_invoke_all merges duplicate keys on arrays, we're using our own hook for a default object (see hook_ffpc_channel)
$vars['channel'] = format_rss_channel($channel->title,
$channel->link,
$channel->description,
$items, // Items can only be modified through hook_nodeapi > rss item
$channel->language,
$channel->args
);
and implemente the hook_ffpc_channel() at the end of the ffpc.module file
that's all.