entity_share_ui.module in Entity Share 7
Entity Share UI .module file.
File
modules/entity_share_ui/entity_share_ui.moduleView source
<?php
/**
* @file
* Entity Share UI .module file.
*/
/**
* Implements hook_help().
*/
function entity_share_ui_help($path, $arg) {
switch ($path) {
case 'admin/help#entity_share':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Entity Share module allows to share contents across different Drupal instances.') . '</p>';
return $output;
}
}
/**
* Implements hook_permission().
*/
function entity_share_ui_permission() {
return array(
'administer entityshare' => array(
'title' => t('Administer EntityShare'),
'description' => t('Allows a user to configure the EntityShare.'),
),
);
}
/**
* Implements hook_menu().
*/
function entity_share_ui_menu() {
$items = array();
// Intermediate menu.
$items['admin/config/entity_share'] = array(
'type' => MENU_NORMAL_ITEM,
'title' => 'Entity Share',
'description' => 'Configure the Entity Share',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer entityshare',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
return $items;
}
Functions
Name | Description |
---|---|
entity_share_ui_help | Implements hook_help(). |
entity_share_ui_menu | Implements hook_menu(). |
entity_share_ui_permission | Implements hook_permission(). |