auto_block_scheduler.module in Auto Block Scheduler 8
Same filename and directory in other branches
Scheduler publishes and unpublishes nodes on dates specified by the user.
File
auto_block_scheduler.moduleView source
<?php
/**
* @file
* Scheduler publishes and unpublishes nodes on dates specified by the user.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function auto_block_scheduler_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
case 'help.page.auto_block_scheduler':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Auto Block Scheduler module provides the functionality for automatic publishing and unpublishing of blocks at specified future dates.') . '</p>';
$output .= '<p>' . t('You can read more in the <a href="@readme">readme</a> file or our <a href="@project">project page on Drupal.org</a>.', [
'@readme' => $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'auto_block_scheduler') . '/README.txt',
'@project' => 'https://drupal.org/project/auto_block_scheduler',
]) . '</p>';
break;
case 'auto_block_scheduler.admin_form':
break;
default:
}
return $output;
}
Functions
Name | Description |
---|---|
auto_block_scheduler_help | Implements hook_help(). |