forked from webaccess/com.webaccessglobal.module.civimobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcivimobile.php
30 lines (27 loc) · 858 Bytes
/
civimobile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
function civimobile_civicrm_config( &$config ) {
$tabRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
// fix php include path
$include_path = $tabRoot .'code'. PATH_SEPARATOR . get_include_path( );
set_include_path( $include_path );
}
function civimobile_civicrm_xmlMenu( &$files ) {
$files[] = dirname(__FILE__)."/civimobile.xml";
}
function civimobile_civicrm_navigationMenu( &$params ) {
// get the maximum key of $params
$maxKey = ( max( array_keys($params) ) );
$params[$maxKey+1] = array (
'attributes' => array (
'label' => 'CiviMobile',
'name' => 'CiviMobile',
'url' => 'civicrm/mobile',
'permission' => 'administer CiviCRM',
'operator' => null,
'separator' => null,
'parentID' => 2,
'navID' => $maxKey+1,
'active' => 1
)
);
}