-
Notifications
You must be signed in to change notification settings - Fork 4
Log Data Visualization Article
akshay31057 edited this page Jul 2, 2017
·
1 revision
- This sub module facilitates the administrator to view a list of top 10 viewed articles.
- This feature can give insights based on which article is rated the most based on which many imperative decisions with regards to business can be taken. For instance, relevant advertisements.
- 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_user 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_article_admin_form: This function creates a button which on clicked executes log_data_visualization_article_select.
- log_data_visualization_article_select: This function redirects the user to the desired page using drupal_goto() and the data for this page is rendered by executing log_data_visualization_article_view .
- log_data_visualization_article_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)