|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * @file |
| 5 | + * TODO: Enter file description here. |
| 6 | + */ |
| 7 | + |
| 8 | +/** |
| 9 | + * Implements hook_help(). |
| 10 | + */ |
| 11 | +function queueit_help($path, $arg) { |
| 12 | + switch ($path) { |
| 13 | + // Main module help for the block module |
| 14 | + case 'admin/help#block': |
| 15 | + return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The <a href="@blocks">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', array('@blocks' => url('admin/structure/block'))) . '</p>'; |
| 16 | + |
| 17 | + // Help for another path in the block module |
| 18 | + case 'admin/structure/block': |
| 19 | + return '<p>' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.') . '</p>'; |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +/** |
| 24 | + * Implements hook_menu(). |
| 25 | + */ |
| 26 | +function queueit_menu() { |
| 27 | + $items = array(); |
| 28 | + $items['admin/config/services/queueit'] = array( |
| 29 | + 'title' => 'Queue-it settings', |
| 30 | + 'description' => 'Configure settings for Queue-it.', |
| 31 | + 'page callback' => 'drupal_get_form', |
| 32 | + 'page arguments' => array('queueit_settings_form'), |
| 33 | + 'access arguments' => array('administer queueit'), |
| 34 | + 'file' => 'queueit.admin.inc', |
| 35 | + ); |
| 36 | + |
| 37 | + return $items; |
| 38 | +} |
| 39 | + |
| 40 | +/** |
| 41 | + * Implements hook_library(). |
| 42 | + */ |
| 43 | +function queueit_library() { |
| 44 | + // Register libraries available in the external directory. |
| 45 | + $path = libraries_get_path('composer') . '/queueit/KnownUser.V3.PHP'; |
| 46 | + $libraries['queueit/KnownUser'] = array( |
| 47 | + 'title' => 'KnownUser.V3.PHP', |
| 48 | + 'version' => '3', |
| 49 | + ); |
| 50 | + return $libraries; |
| 51 | +} |
| 52 | + |
| 53 | +/** |
| 54 | + * Implements hook_permission(). |
| 55 | + */ |
| 56 | +function queueit_permission() { |
| 57 | + $permissions = array(); |
| 58 | + $permissions['administer'] = array( |
| 59 | + 'title' => t('TODO: enter permission title'), |
| 60 | + 'description' => t('TODO: enter permission description'), |
| 61 | + ); |
| 62 | + $permissions['queueit'] = array( |
| 63 | + 'title' => t('TODO: enter permission title'), |
| 64 | + 'description' => t('TODO: enter permission description'), |
| 65 | + ); |
| 66 | + $permissions['administer queueit'] = array( |
| 67 | + 'title' => t('TODO: enter permission title'), |
| 68 | + 'description' => t('TODO: enter permission description'), |
| 69 | + ); |
| 70 | + |
| 71 | + return $permissions; |
| 72 | +} |
0 commit comments