| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
// $Id: session_expire.module,v 1.1 2007/11/05 14:17:49 kbahey Exp $ |
| 4 |
|
|
| 5 |
// Copyright 2007 Khalid Baheyeldin http://2bits.com |
// Copyright 2007 Khalid Baheyeldin http://2bits.com |
| 6 |
|
|
| 9 |
define('SESSION_EXPIRE_MODE', 'session_expire_mode'); |
define('SESSION_EXPIRE_MODE', 'session_expire_mode'); |
| 10 |
define('SESSION_EXPIRE_LAST', 'session_expire_last'); |
define('SESSION_EXPIRE_LAST', 'session_expire_last'); |
| 11 |
|
|
| 12 |
function session_expire_menu($may_cache) { |
function session_expire_menu() { |
| 13 |
$items = array(); |
$items = array(); |
| 14 |
if ($may_cache) { |
$items['admin/settings/session_expire'] = array( |
| 15 |
$items[] = array( |
'type' => MENU_NORMAL_ITEM, |
| 16 |
'path' => 'admin/settings/session_expire', |
'title' => t('Session expire'), |
| 17 |
'type' => MENU_NORMAL_ITEM, |
'description' => t('Settings for session expiry'), |
| 18 |
'title' => t('Session expire'), |
'page callback' => 'drupal_get_form', |
| 19 |
'description' => t('Settings for session expiry'), |
'page arguments' => array('session_expire_settings'), |
| 20 |
'callback' => 'drupal_get_form', |
'access arguments' => array('administer site configuration'), |
| 21 |
'callback arguments' => array('session_expire_settings'), |
); |
|
'access' => user_access('administer site configuration'), |
|
|
); |
|
|
} |
|
| 22 |
return $items; |
return $items; |
| 23 |
} |
} |
| 24 |
|
|