You are here

pack_upload.module in Pack & Upload 8

Same filename and directory in other branches
  1. 7 pack_upload.module
  2. 2.0.x pack_upload.module

This is the main code file for pack and upload module.

File

pack_upload.module
View source
<?php

/**
 * @file
 * This is the main code file for pack and upload module.
 */

/**
 * Implements hook_permission().
 */
function pack_upload_permission() {
  return array(
    'pack and upload' => array(
      'description' => t('This permission allow a user to upload packed files & assets to server and extract them to a specified directory.'),
      'title' => t('Use pack & upload'),
    ),
  );
}

/**
 * Implements hook_menu().
 */
function pack_upload_menu() {
  $items['admin/config/media/pack-upload'] = array(
    'title' => 'Pack & Upload',
    'route_name' => 'pack_upload.config',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/media/pack-upload/settings'] = array(
    'title' => 'Pack & Upload',
    'route_name' => 'pack_upload.config.settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/media/pack-upload/bulk-media-upload'] = array(
    'title' => 'Upload bulk media',
    'route_name' => 'pack_upload.uploadform',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}

Functions

Namesort descending Description
pack_upload_menu Implements hook_menu().
pack_upload_permission Implements hook_permission().