Commit cd811df6 authored by RoSk0's avatar RoSk0

Fixed paths for Dashboard and Reports.

parent 42f2feca
......@@ -4,7 +4,7 @@
*/
function crm_core_report_enable() {
$item = array(
'link_path' => 'crm/reports',
'link_path' => 'crm-core/reports',
'link_title' => 'Reports',
'menu_name' => 'crm-core-menu',
'weight' => 2,
......@@ -18,7 +18,7 @@ function crm_core_report_enable() {
function crm_core_report_disable() {
$links = menu_load_links('crm-core-menu');
foreach ($links as $link) {
if ($link['link_path'] == 'crm/reports') {
if ($link['link_path'] == 'crm-core/reports') {
menu_link_delete($link['mlid']);
}
}
......
......@@ -23,8 +23,7 @@ function crm_ui_enable() {
db_insert('block')->fields($fields, $values)->execute();
$item = array(
'link_path' => 'crm-core/dashboard',
'link_path' => 'crm',
'link_path' => 'crm-core',
'link_title' => 'Dashboard',
'menu_name' => 'crm-core-menu',
'weight' => 0,
......@@ -39,7 +38,7 @@ function crm_ui_disable() {
db_delete('block')->condition('delta', 'crm-core-menu')->execute();
$links = menu_load_links('crm-core-menu');
foreach ($links as $link) {
if ($link['link_path'] == 'crm') {
if ($link['link_path'] == 'crm-core') {
menu_link_delete($link['mlid']);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment