| 1 |
<?php |
<?php |
| 2 |
// $Id: content_slider.module,v 1.1.2.2 2008/12/08 12:59:40 ebizondrupalservices Exp $ |
// $Id: content_slider.module,v 1.1.2.2 2008/12/015 12:59:40 ebizondrupalservices Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
/** |
/** |
| 28 |
return array('access content_slider', 'administer content_slider'); |
return array('access content_slider', 'administer content_slider'); |
| 29 |
} |
} |
| 30 |
|
|
| 31 |
function content_slider_menu($may_cache) { |
function content_slider_menu() { |
| 32 |
$items = array(); |
$items = array(); |
| 33 |
if ($may_cache) { |
|
| 34 |
$items[] = array( |
$items['admin/settings/content_slider'] = array( |
| 35 |
'path' => 'admin/settings/content_slider', |
'title' => 'Content Slider', |
| 36 |
'title' => 'Content Slider', |
'description' => t('Setting Content Slider.'), |
| 37 |
'description' => t('Setting Content Slider.'), |
'page callback' => 'drupal_get_form', |
| 38 |
'callback' => 'drupal_get_form', |
'page arguments' => array('content_slider_admin_settings'), |
| 39 |
'callback arguments' => array('content_slider_admin_settings'), |
'access arguments' => array('administer site configuration'), |
| 40 |
'access' => user_access('administer content_slider'), |
); |
| 41 |
'type' => MENU_NORMAL_ITEM, |
$items[] = array( |
| 42 |
); |
'path' => 'content_slider/list/'. arg(2), |
| 43 |
|
'title' => t('Content Slider'), |
| 44 |
$items[] = array( |
'page callback' => 'content_slider_page_list', |
| 45 |
'path' => 'content_slider/list/'. arg(2), |
'page arguments' => array(arg(2)), |
| 46 |
'title' => t('Content Slider'), |
'access arguments' => array('access content_slider'), |
| 47 |
'callback' => 'content_slider_page_list', |
'type' => MENU_CALLBACK, |
| 48 |
'callback arguments' => array(arg(2)), |
); |
|
'access' => user_access('access content_slider'), |
|
|
'type' => MENU_CALLBACK, |
|
|
); |
|
|
} |
|
| 49 |
return $items; |
return $items; |
| 50 |
} |
} |
| 51 |
|
|