You are here

node_type_count.module in Node Type count 7

Same filename and directory in other branches
  1. 8 node_type_count.module

This module Count Published and Unpublished Count for All content type.

Count the Number of user in All Roles.

File

node_type_count.module
View source
<?php

/**
 * @file
 * This module Count Published and Unpublished Count for All content type.
 *
 * Count the Number of user in All Roles.
 */

/**
 * Implements hook_help().
 *
 * Displays help and module information for Node Type Count module.
 */
function node_type_count_help($path, $arg) {
  switch ($path) {
    case "admin/help#node_type_count":
      return '<p>' . t("This Module is used to count the number of published and unpublished nodes in all content types and counts the number of users in Every User Role") . '</p>';
  }
}

/**
 * Implements hook_menu().
 */
function node_type_count_menu() {
  $items = array();
  $items['admin/reports/node-type-count'] = array(
    'title' => 'Node Type Count',
    'description' => 'Create a table in the node-type-count page',
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'node_type_count_page_node',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'node_type_count.admin.inc',
  );
  $items['admin/reports/node-type-count/node'] = array(
    'title' => 'Node Count',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/reports/node-type-count/user'] = array(
    'title' => 'User Count',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'node_type_count_page_user',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'node_type_count.admin.inc',
  );
  return $items;
}

Functions

Namesort descending Description
node_type_count_help Implements hook_help().
node_type_count_menu Implements hook_menu().