| 1 |
<?php |
<?php |
| 2 |
// $Id: bookmarks.module,v 1.47.2.3 2008/12/17 17:40:38 darthclue Exp $ |
// $Id: bookmarks.module,v 1.47.2.4 2009/01/20 15:02:42 darthclue Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 11 |
* and we add a bookmarks- prefix. |
* and we add a bookmarks- prefix. |
| 12 |
*/ |
*/ |
| 13 |
define('MENU_MAX_MENU_NAME_LENGTH_UI', 23); |
define('MENU_MAX_MENU_NAME_LENGTH_UI', 23); |
| 14 |
|
define('PRESETS_URL', 'bookmarks/mine/presets'); |
| 15 |
|
|
| 16 |
/** |
/** |
| 17 |
* Implementation of hook_help(). |
* Implementation of hook_help(). |
| 20 |
switch ($path) { |
switch ($path) { |
| 21 |
case 'admin/help#bookmarks': |
case 'admin/help#bookmarks': |
| 22 |
$output = '<p>'. t("The bookmarks module provides an interface to control and customize user bookmarks. Bookmarks are based on the menu system and can be represented as a hierarchical collection of links, or menu items. The bookmarks module creates a unique bookmarks menu for each authenticated user.") .'</p>'; |
$output = '<p>'. t("The bookmarks module provides an interface to control and customize user bookmarks. Bookmarks are based on the menu system and can be represented as a hierarchical collection of links, or menu items. The bookmarks module creates a unique bookmarks menu for each authenticated user.") .'</p>'; |
| 23 |
$output .= '<p>'. t('The <a href="@bookmarks">bookmarks page</a> displays all bookmarks currently available on your site. Select a bookmark group from this list to add or edit a menu item, or to rearrange items within the menu. Create new bookmark groups using the <a href="@add-bookmarks">add bookmark group page</a>.', array('@bookmarks' => url('admin/build/bookmarks'), '@add-bookmarks' => url('admin/build/bookmarks/add'))) .'</p>'; |
$output .= '<p>'. t('The <a href="@bookmarks">bookmarks page</a> displays the administrative bookmarks on yoursite. Select a group to add or edit items.') . '</p>'; |
|
// $output .= '<p>'. t('For more information, see the online handbook entry for <a href="@bookmarks">bookmarks module</a>.', array('@bookmarks' => 'http://drupal.org/handbook/modules/bookmarks/')) .'</p>'; |
|
| 24 |
return $output; |
return $output; |
| 25 |
case 'admin/build/bookmarks': |
case 'admin/build/bookmarks': |
| 26 |
return '<p>'. t('Bookmark groups are a collection of links used to navigate the web. The bookmark groups currently available on your site are displayed below. Select an item from this list to manage its bookmarks.') .'</p>'; |
return '<p>'. t('Bookmark groups are a collection of links used to navigate the web. The bookmark groups currently available on your site are displayed below. Select an item from this list to manage its bookmarks.') .'</p>'; |
| 78 |
'type' => MENU_LOCAL_TASK, |
'type' => MENU_LOCAL_TASK, |
| 79 |
'file' => 'bookmarks.admin.inc', |
'file' => 'bookmarks.admin.inc', |
| 80 |
); |
); |
| 81 |
|
$items['bookmarks/mine/presets'] = array( |
| 82 |
|
'title' => 'Preset Bookmarks', |
| 83 |
|
'description' => "Preset bookmarks for you to use.", |
| 84 |
|
'page callback' => 'drupal_get_form', |
| 85 |
|
'page arguments' => array('bookmarks_overview_form', array('menu_name' => 'bookmarks-presets')), |
| 86 |
|
'access arguments' => array('administer own bookmarks'), |
| 87 |
|
'type' => MENU_LOCAL_TASK, |
| 88 |
|
'file' => 'bookmarks.admin.inc', |
| 89 |
|
); |
| 90 |
|
$items['bookmarks/mine/presets/add/%menu_link'] = array( |
| 91 |
|
'title' => 'Add Preset Bookmarks', |
| 92 |
|
'page callback' => 'bookmarks_add_preset', |
| 93 |
|
'page arguments' => array(4), |
| 94 |
|
'access arguments' => array('administer own bookmarks'), |
| 95 |
|
'type' => MENU_LOCAL_TASK, |
| 96 |
|
'file' => 'bookmarks.admin.inc', |
| 97 |
|
); |
| 98 |
$items['bookmarks/item/addpage'] = array( |
$items['bookmarks/item/addpage'] = array( |
| 99 |
'title' => 'Add item', |
'title' => 'Add item', |
| 100 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 134 |
'weight' => -10, |
'weight' => -10, |
| 135 |
'file' => 'bookmarks.admin.inc', |
'file' => 'bookmarks.admin.inc', |
| 136 |
); |
); |
|
$items['admin/build/bookmarks/add'] = array( |
|
|
'title' => 'Add group', |
|
|
'page callback' => 'drupal_get_form', |
|
|
'page arguments' => array('bookmarks_edit_menu', 'add'), |
|
|
'access arguments' => array('administer bookmarks'), |
|
|
'type' => MENU_LOCAL_TASK, |
|
|
'file' => 'bookmarks.admin.inc', |
|
|
); |
|
| 137 |
$items['admin/build/bookmarks-customize/%bookmarks'] = array( |
$items['admin/build/bookmarks-customize/%bookmarks'] = array( |
| 138 |
'title' => 'Customize menu', |
'title' => 'Customize menu', |
| 139 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |