| 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 |
| 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'), |