I'm new to Drupal and developing a new module for listing out a user's podcast(s). It is basically for a community directory of podcasts, but I used the blog.module as a template since it had a lot of the functionality I was looking for.
I've got the individual node pages working and the last-10 block too, but the other pages are busted or not found.
To be specific, the list of recent nodes, specific user-owed nodes and the feed don't work. Any ideas?
/**
* Implementation of hook_view().
*/
function podlisting_view(&$node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
$profile = theme('podlisting_profile', $node);
$node->body .= $profile;
$node->teaser .= $profile;
}
/**
* Implementation of hook_user().
*/
function podlisting_user($type, &$edit, &$user) {
if ($type == 'view' && user_access('edit own podlisting', $user)) {
$form['podlisting'] = array(
'#type' => 'item', '#title' => t('podlisting'),
'#value' => l(t('associated podlistings'), "podlisting/$user->uid", array('title' => t("Check out %username's podlistings.", array('%username' => $user->name))))
);
return array(t('Vlogs') => $form);
}
}
/**
* Menu callback; displays a Drupal page containing recent podlisting entries.
*/
function podlisting_page($a = NULL, $b = NULL) {
if (is_numeric($a)) { // $a is a user ID