mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
addressbook extension:
Admin can now define multiple addressbooks each with an own edit / view template and an own icon. Atm. all Addressbooks are stored in one backend, but this will change soon^tm
This commit is contained in:
parent
b2f0d561c6
commit
4cfc20459e
@ -14,7 +14,7 @@
|
|||||||
/* Basic information about this app */
|
/* Basic information about this app */
|
||||||
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
$setup_info['phpgwapi']['name'] = 'phpgwapi';
|
||||||
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
|
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
|
||||||
$setup_info['phpgwapi']['version'] = '1.3.002';
|
$setup_info['phpgwapi']['version'] = '1.3.003';
|
||||||
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
|
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
|
||||||
$setup_info['phpgwapi']['enable'] = 3;
|
$setup_info['phpgwapi']['enable'] = 3;
|
||||||
$setup_info['phpgwapi']['app_order'] = 1;
|
$setup_info['phpgwapi']['app_order'] = 1;
|
||||||
@ -64,3 +64,4 @@
|
|||||||
$setup_info['notifywindow']['tables'] = '';
|
$setup_info['notifywindow']['tables'] = '';
|
||||||
$setup_info['notifywindow']['hooks'][] = 'home';
|
$setup_info['notifywindow']['hooks'][] = 'home';
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@
|
|||||||
),
|
),
|
||||||
'pk' => array('id'),
|
'pk' => array('id'),
|
||||||
'fk' => array(),
|
'fk' => array(),
|
||||||
'ix' => array(array('tid','owner','access','n_family','n_given','email'),array('tid','cat_id','owner','access','n_family','n_given','email')),
|
'ix' => array(array('tid','owner','access','n_family','n_given'),array('tid','cat_id','owner','access','n_family')),
|
||||||
'uc' => array()
|
'uc' => array()
|
||||||
),
|
),
|
||||||
'egw_addressbook_extra' => array(
|
'egw_addressbook_extra' => array(
|
||||||
|
@ -41,4 +41,32 @@
|
|||||||
|
|
||||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.002';
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.002';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$test[] = '1.3.002';
|
||||||
|
function phpgwapi_upgrade1_3_002()
|
||||||
|
{
|
||||||
|
/*************************************************************************\
|
||||||
|
* add addressbook-type contact into type definition table *
|
||||||
|
\*************************************************************************/
|
||||||
|
if ($GLOBALS['DEBUG'])
|
||||||
|
{
|
||||||
|
echo "<br>\n<b>initiating to create the default type 'contact' for addressbook";
|
||||||
|
}
|
||||||
|
|
||||||
|
$newconf = array('n' => array(
|
||||||
|
'name' => 'contact',
|
||||||
|
'options' => array(
|
||||||
|
'template' => 'addressbook.edit',
|
||||||
|
'icon' => 'navbar.png'
|
||||||
|
)));
|
||||||
|
$GLOBALS['egw_setup']->oProc->query("INSERT INTO egw_config (config_app,config_name,config_value) VALUES ('addressbook','types','". serialize($newconf). "')",__LINE__,__FILE__);
|
||||||
|
|
||||||
|
if ($GLOBALS['DEBUG'])
|
||||||
|
{
|
||||||
|
echo " DONE!</b>";
|
||||||
|
}
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.003';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user