Skip to content

Log Data Visualization Article

akshay31057 edited this page Jul 2, 2017 · 1 revision

Description

  • 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:

Implementation

  • 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 :
  • 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.