crossdomain.module in Crossdomain 8
Same filename and directory in other branches
File
crossdomain.moduleView source
<?php
/**
* Implements hook_menu().
*/
function crossdomain_menu() {
$items = array();
$items['admin/config/media/crossdomain'] = array(
'title' => 'Crossdomain',
'description' => 'Add domains to be listed in crossdomain.',
'route_name' => 'crossdomain.list',
);
return $items;
}
/**
* Implements hook_permission().
*/
function crossdomain_permission() {
return array(
'administer crossdomain' => array(
'title' => t('administer crossdomain'),
'description' => t('Perform administration tasks for crossdomain'),
),
);
}
/**
* Menu argument loader: Loads a node type by string.
*
* @param $name
* The machine name of a domain to load.
*
* @return \Drupal\crossdomain\CrossdomainInterface
* A node type object or NULL if $name does not exist.
*/
function crossdomain_load($name) {
debug($name);
return entity_load('crossdomain', $name);
}
Functions
Name | Description |
---|---|
crossdomain_load | Menu argument loader: Loads a node type by string. |
crossdomain_menu | Implements hook_menu(). |
crossdomain_permission | Implements hook_permission(). |