Removing references to README.txt files in help functions
This commit is contained in:
parent
cfe5e67bb3
commit
7211b87ec4
3 changed files with 0 additions and 26 deletions
|
@ -411,12 +411,6 @@ function print_link_alter(&$links, $node) {
|
||||||
* Implementation of hook_help().
|
* Implementation of hook_help().
|
||||||
*/
|
*/
|
||||||
function print_help($path, $arg) {
|
function print_help($path, $arg) {
|
||||||
switch ($path) {
|
|
||||||
case 'admin/help#print':
|
|
||||||
// Return a line-break version of the module README
|
|
||||||
return filter_filter('process', 1, NULL, file_get_contents(drupal_get_path('module', 'print') .'/README.txt') );
|
|
||||||
}
|
|
||||||
|
|
||||||
$print_html_link_pos = variable_get('print_html_link_pos', unserialize(PRINT_HTML_LINK_POS_DEFAULT));
|
$print_html_link_pos = variable_get('print_html_link_pos', unserialize(PRINT_HTML_LINK_POS_DEFAULT));
|
||||||
if (($path !== 'node/%') && !(empty($print_html_link_pos['help']))) {
|
if (($path !== 'node/%') && !(empty($print_html_link_pos['help']))) {
|
||||||
static $output = FALSE;
|
static $output = FALSE;
|
||||||
|
|
|
@ -15,8 +15,6 @@ function stormquicktt_help($path, $arg) {
|
||||||
switch ($path) {
|
switch ($path) {
|
||||||
case 'admin/suitedesk/quicktt':
|
case 'admin/suitedesk/quicktt':
|
||||||
return '<p>'. t('Here you can set up parameters for SuiteDesk-Quick-TimeTracker.') .'</p>';
|
return '<p>'. t('Here you can set up parameters for SuiteDesk-Quick-TimeTracker.') .'</p>';
|
||||||
case 'admin/help#stormquicktt':
|
|
||||||
return filter_filter('process', 2, NULL, file_get_contents(dirname(__FILE__) ."/README.txt"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,24 +245,6 @@ function watcher_perm() {
|
||||||
return array('administer watcher', 'use watcher', 'change own user settings', 'access help page', 'access others lists of watched posts');
|
return array('administer watcher', 'use watcher', 'change own user settings', 'access help page', 'access others lists of watched posts');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Implementation of hook_help()
|
|
||||||
*/
|
|
||||||
function watcher_help($path, $arg) {
|
|
||||||
switch ($path) {
|
|
||||||
case 'admin/help#watcher':
|
|
||||||
// Load the help text.
|
|
||||||
$help = file_get_contents('README.txt', FILE_USE_INCLUDE_PATH);
|
|
||||||
|
|
||||||
// Abort if we can't find the file.
|
|
||||||
if (!$help) return;
|
|
||||||
|
|
||||||
$help = htmlentities($help);
|
|
||||||
|
|
||||||
return theme('watcher_help', $help);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of hook_menu().
|
* Implementation of hook_menu().
|
||||||
*/
|
*/
|
||||||
|
|
Reference in a new issue