Hi !

When using linkit and then try to install the dashboard module it fails because of this:

warning: Missing argument 1 for linkit_dashboard() in /var/www/xxx/sites/all/modules/linkit/linkit.module on line 109.

anyone knows a solution for that ?

Comments

anon’s picture

Linkit us calling a function called "linkit_dashboard" on line 109.

I bet there is a hook called hook_dashboard in the dashboard module.

I have really no Idea how we both should solve this. Someone has to change function/hook name.

First time ever for me to see a hook conflict.

anon’s picture

Assigned: Unassigned » anon

I will change my menu callback from "linkit_dashboard" to "linkit_dashboard_page"

That will solve this issue, but the source problem is in the dashboard module.

For more info see #928588: hook_dashboard conflicts with other *_dashboard functions

anon’s picture

Status: Active » Fixed

My function name is now change to
linkit_dashboard_page
Committed to 6.x-1.x-dev. This will be available in the 6.x-1.7 release

arnold_mad’s picture

can you append your patch so that I can also patch my version ?

anon’s picture

@arnold_mad: Yes. But unfortunately it seems like I cant make a patch file.

Hope this helps.
EDIT: see #7
The line numbers is from the dev version, so they may be litte diffrent for 6.x-1.6 but I think you can handle that. =)

arnold_mad’s picture

but you changed the dashboard module and not the linkit module !?!

anon’s picture

@arnold_mad oops! Your right, that is the wrong snippet. Sorry..

Here is what I did

linkit.module

Line: 18 
- 'page callback' => 'linkit_dashboard',
+ 'page callback' => 'linkit_dashboard_page'

Line: 124
- function linkit_dashboard($editor) {
+ function linkit_dashboard_page($editor) {

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.