Last updated May 27, 2011. Created by sukr_s on May 27, 2011.
Log in to edit this page.

The Userbar module provides an easy way for modules to automatically notify end users about any change in their content status.
The module provides two hooks to feed the content status to Userbar.
1. hook_userbar_info(). This hook provides the list of content status provided by the module. This hook in invoked in the userbar configuration screen which gives the administrator and users an opportunity to enable or disable a sepcific content status.

2. hook_userbar_view(). This hook is used to provide the status of the content for the given user. The implementation must check if the content type provided by the module is selected by the administrator and end user before returing the content status.

For more detailed information on the hook see the userbar.api.php in the userbar module folder.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Audience
Programmers

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here