/[drupal]/contributions/modules/bookmarks/bookmarks.admin.inc
ViewVC logotype

Diff of /contributions/modules/bookmarks/bookmarks.admin.inc

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

revision 1.5.2.3 by darthclue, Wed Dec 17 17:40:38 2008 UTC revision 1.5.2.4 by darthclue, Tue Jan 20 15:02:42 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: bookmarks.admin.inc,v 1.5.2.2 2008/07/09 18:43:57 darthclue Exp $  // $Id: bookmarks.admin.inc,v 1.5.2.3 2008/12/17 17:40:38 darthclue Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 371  function bookmarks_edit_item(&$form_stat Line 371  function bookmarks_edit_item(&$form_stat
371    // Generate a list of possible parents (not including this item or descendants).    // Generate a list of possible parents (not including this item or descendants).
372    $options = menu_parent_options(bookmarks_get_menus(FALSE, $menu['menu_name']), $item);    $options = menu_parent_options(bookmarks_get_menus(FALSE, $menu['menu_name']), $item);
373    $default = $item['menu_name'] .':'. $item['plid'];    $default = $item['menu_name'] .':'. $item['plid'];
374      $menu_userid = (str_replace('bookmarks-', '', $item['menu_name']));
375      if ($menu_userid == $user->uid) {
376        $options[$item['menu_name'] . ':0'] = $user->name;
377      }
378      else {
379        $menu_user = user_load($menu_userid);
380        $options[$item['menu_name'] . ':0'] = $menu_user->name;
381      }
382    $form['bookmarks']['parent'] = array(    $form['bookmarks']['parent'] = array(
383      '#type' => 'select',      '#type' => 'select',
384      '#title' => t('Parent item'),      '#title' => t('Parent item'),

Legend:
Removed from v.1.5.2.3  
changed lines
  Added in v.1.5.2.4

  ViewVC Help
Powered by ViewVC 1.1.3