-
Notifications
You must be signed in to change notification settings - Fork 4
Log Data Visualization Collab
akshay31057 edited this page Jul 2, 2017
·
1 revision
- This sub-module facilitates the administrator to view a list of top 10 viewed articles along with their corresponding tags or a particular user in a tabular format.
- This feature has been implemented to facilitate the development of recommendation system by the collaborating communities project.
- This sub-module provides a function that acts as an interface for the collaborating communities project to access the desired information.
- There is one dependency for the log_data_visualization_article module:
- Event Log Module: (Github link to this module: https://github.com/fresearchgroup/drupal-logger )
- A new sub-module named log_data_visualization_collab is added. The .module file implements the desired action using hook api functions namely, hook_menu and hook_permission.
- Details about this functions can be found at :
- hook_menu : To register paths to configuration page and the page used for representation of visualizations. It also associates callback functions to the corresponding registered pages.
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7.x - hook_permission : To enable administrator to provide privileges to different users.
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_permission/7.x
- hook_menu : To register paths to configuration page and the page used for representation of visualizations. It also associates callback functions to the corresponding registered pages.
- Besides the above hook api functions, some user defined functions in the sub-module are:
- log_data_visualization_collab_admin_form: This function creates a text field and a button(using form api) which on clicked executes log_data_visualization_collab_select.
- log_data_visualization_collab_select: This function redirects the user to the desired page using drupal_goto() and the data(username) for this page is passed as an argument.
- log_data_visualization_collab_view: By executing an SQL query, appropriate data is fetched from the database and shown to the user in a tabular format.
- Ability to log to a file instead of a database
- Backup event_log database content
- Clear log messages button
- Notify Illegal access to authorized user
- Log Data to Cloud (Experimental)