| 1 |
<?php |
<?php |
| 2 |
// $Id: blogroll.module,v 1.3 2005/01/04 03:03:47 ahynes1 Exp $ |
// $Id: blogroll.module,v 1.4 2005/01/11 01:29:36 grantbow Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 27 |
global $user; |
global $user; |
| 28 |
$items = array(); |
$items = array(); |
| 29 |
|
|
| 30 |
if ($may_cache) { |
$items[] = array('path' => 'blogroll/edit', 'title' => t('edit blogroll'), |
| 31 |
$items[] = array('path' => 'blogroll/edit', 'title' => t('edit blogroll'), |
'callback' => 'blogroll_edit', |
| 32 |
'callback' => 'blogroll_edit', |
'access' => user_access('edit own blog'), // depends on blog.module |
| 33 |
'access' => user_access('edit own blog'), // depends on blog.module |
'type' => MENU_CALLBACK); |
| 34 |
'type' => MENU_CALLBACK); |
$items[] = array('path' => 'blogroll/script', 'title' => t('blogroll'), |
| 35 |
$items[] = array('path' => 'blogroll/script', 'title' => t('blogroll'), |
'callback' => 'blogroll_script', |
| 36 |
'callback' => 'blogroll_script', |
'access' => TRUE, |
| 37 |
'access' => TRUE, |
'type' => MENU_CALLBACK); |
|
'type' => MENU_CALLBACK); |
|
|
} |
|
| 38 |
return $items; |
return $items; |
| 39 |
} |
} |
| 40 |
|
|