| 1 |
<?php |
<?php |
| 2 |
// $Id: dashboard.module,v 1.35 2009/09/04 11:19:46 drumm Exp $ |
// $Id: dashboard.module,v 1.36 2009/09/10 06:39:56 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 174 |
} |
} |
| 175 |
|
|
| 176 |
/** |
/** |
|
* Implement hook_dashboard_widget(). |
|
|
*/ |
|
|
function dashboard_dashboard_widget() { |
|
|
return array( |
|
|
/* |
|
|
array( |
|
|
'path' => menu router path for add to dashboard link, |
|
|
'name' => machine-readable name, |
|
|
'title' => human-readable name, |
|
|
), |
|
|
*/ |
|
|
); |
|
|
} |
|
|
|
|
|
/** |
|
|
* Sample implementatin of hook_dashboard_widget(). |
|
|
* DEPRACATED? |
|
|
*/ |
|
|
function dashboard_example_dashboard_widget($widget_id) { |
|
|
return array( |
|
|
'title' => 'Widget '. $widget_id, |
|
|
'link' => 'http://example.com', |
|
|
'content' => 'Hello world', |
|
|
); |
|
|
} |
|
|
|
|
|
/** |
|
| 177 |
* Load information for a user dashboard. |
* Load information for a user dashboard. |
| 178 |
* This menu loader function is the default implementation |
* This menu loader function is the default implementation |
| 179 |
* of a Dashboard. |
* of a Dashboard. |