/[drupal]/contributions/modules/favorite_nodes/favorite_nodes.module
ViewVC logotype

Diff of /contributions/modules/favorite_nodes/favorite_nodes.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8.2.10, Sat Mar 28 16:19:49 2009 UTC revision 1.8.2.11, Sat Apr 11 17:20:28 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: favorite_nodes.module,v 1.8.2.9 2009/01/09 04:01:09 kbahey Exp $  // $Id: favorite_nodes.module,v 1.8.2.10 2009/03/28 16:19:49 kbahey Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 149  function favorite_nodes_user($op, &$edit Line 149  function favorite_nodes_user($op, &$edit
149            if (!empty($favorites)) {            if (!empty($favorites)) {
150              $user->content['favorite_nodes_list'] = array(              $user->content['favorite_nodes_list'] = array(
151                '#type' => 'user_profile_category',                '#type' => 'user_profile_category',
152                '#title' => t('My favorites'),                '#title' => t('Favorites'),
153              );              );
154              foreach ($favorites as $favorite) {              foreach ($favorites as $favorite) {
155                $items[] = l($favorite->title, "node/$favorite->nid");                $items[] = l($favorite->title, "node/$favorite->nid");
156              }              }
157              $user->content['faveliste'][$type->name] = array(              $user->content['favorite_nodes_list']['Favorites'][$type->name] = array(
158                '#type' => 'user_profile_item',                '#type' => 'user_profile_item',
159                '#title' => l($type->name, "favorite_nodes/view/$user->uid/$type->type"),                '#title' => l($type->name, "favorite_nodes/view/$user->uid/$type->type"),
160                '#value' => theme('item_list', $items),                '#value' => theme('item_list', $items),

Legend:
Removed from v.1.8.2.10  
changed lines
  Added in v.1.8.2.11

  ViewVC Help
Powered by ViewVC 1.1.2