Commit bc0228c8 authored by Abhishek Vishwakarma's avatar Abhishek Vishwakarma
Browse files

Issue #2810441 by c.nish2k3, manojbisht_drupal: Backport to Drupal 7 [D7]

parent 97e256ba
Loading
Loading
Loading
Loading

README.md

deleted100644 → 0
+0 −37
Changes for README.md: 0 added lines, 37 removed lines.
Original line number Diff line number Diff line
CONTENTS OF THIS FILE
---------------------
   
 * Introduction
 * Installation
 * Configuration
 * Maintainers
 
INTRODUCTION
------------

This is very simple module to keep record of concurrent logins counts day-wise, Also sent the mail notification if concurrent login count reached on critical level.

INSTALLATION
------------
 
 * Install as you would normally install a contributed Drupal module. See:
   https://drupal.org/documentation/install/modules-themes/modules-8
   for further information.


CONFIGURATION
-------------
 
 * Configure module on Configuration » Concurrent users notification configuration form:

   - You need to set up cron job (https://www.drupal.org/cron)
   - To view "Concurrent logged in user count history" click on www.example.com/concurrent-users-notification/history

 * Configure permission on www.example.com/admin/people/permissions#module-concurrent_users_notification


MAINTAINERS
-----------

Current maintainers:
 * Abhishek Vishwakarma (visabhishek) - https://www.drupal.org/user/896554
+6 −0
Changes for concurrent_users_notification.info: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
name = Concurrent users notification
description = You can set maximum count of concurrent-logins to get notify.
core = 7.x
package = Notification

configure = admin/config/system/concurrent-users-notification-config
+0 −7
Changes for concurrent_users_notification.info.yml: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
name: Concurrent users notification
type: module
description: You can set maximum count of concurrent-logins to get notify.
core: 8.x
package: Notification

configure: concurrent_users_notification.con_users_noti_config_form
+3 −7
Changes for concurrent_users_notification.install: 3 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -5,15 +5,12 @@
 * Provides a table for store concurrent_login data.
 */

use Drupal\Component\Utility\Crypt;

/**
 * Implements hook_install().
 */
function concurrent_users_notification_install() {
  // Populate the cron key state variable.
  $cun_key = Crypt::randomBytesBase64(55);
  \Drupal::state()->set('concurrent_users_notification.cun_key', $cun_key);
  $cun_key = drupal_random_key(55);
  variable_set('concurrent_users_notification_cun_key', $cun_key);
}

/**
@@ -42,7 +39,6 @@ function concurrent_users_notification_schema() {
    ),
    'primary key' => array('item_id'),
  );

  return $schema;
}

@@ -51,7 +47,7 @@ function concurrent_users_notification_schema() {
 *
 * It's good to clean up after ourselves.
 *
 * @ingroup concurrent_users_notification
 * @ingroup concurrent_users_notification.
 */
function concurrent_users_notification_uninstall() {
  db_drop_table('concurrent_users_notification');
+0 −6
Changes for concurrent_users_notification.links.menu.yml: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
concurrent_users_notification.con_users_noti_config_form:
  title: 'Concurrent users notification settings'
  route_name: concurrent_users_notification.con_users_noti_config_form
  description: 'Configure concurrent users notification'
  parent: system.admin_config_system
  weight: 99
Loading