function piwik_reports_help in Piwik Reports 6
Same name and namespace in other branches
- 8 piwik_reports.module \piwik_reports_help()
- 7.4 piwik_reports.module \piwik_reports_help()
- 7.2 piwik_reports.module \piwik_reports_help()
- 7.3 piwik_reports.module \piwik_reports_help()
@file Drupal Module: Piwik Reports Sponsored by IO1, http://www.io1.biz All code is released under the GNU General Public License.
File
- ./
piwik_reports.module, line 10 - Drupal Module: Piwik Reports Sponsored by IO1, http://www.io1.biz All code is released under the GNU General Public License.
Code
function piwik_reports_help($path, $arg) {
global $user;
switch ($path) {
case arg(0) == 'admin' && arg(1) == 'reports' && arg(2) == 'piwik_reports':
if ($user->uid && empty($user->piwik['piwik_token_auth'])) {
drupal_set_message(t('You need to configure your <em>Piwik authentication string</em> on the <a href="@user-edit">My account</a> page.', array(
'@user-edit' => url('user/' . $user->uid . '/edit'),
)), 'warning', FALSE);
}
}
}