Removing obsolete references to readme files in source code

This commit is contained in:
Manuel Cillero 2017-10-03 23:20:11 +02:00
parent 3bcd36d5ab
commit 37c335e3cc
31 changed files with 52 additions and 94 deletions

View file

@ -17,9 +17,7 @@ function path_alias_xt_requirements($phase) {
);
if (!$has_runkit) {
$requirements['path_alias_xt']['severity'] = REQUIREMENT_INFO;
$requirements['path_alias_xt']['description'] = $t('Reminder: as the PECL runkit is not installed, please edit file %path-inc if you have not done so already. See the !README file for details.',
array('%path-inc' => 'include/path.inc',
'!README' => '<a href=/'. drupal_get_path('module', 'path_alias_xt') .'/README.txt>README</a>'));
$requirements['path_alias_xt']['description'] = $t('Reminder: as the PECL runkit is not installed, please edit file %path-inc if you have not done so already.');
}
return $requirements;
}
@ -36,4 +34,4 @@ function path_alias_xt_install() {
*
function path_alias_xt_uninstall() {
}
*/
*/

View file

@ -32,19 +32,6 @@ function path_alias_xt_boot() {
return;
}
/**
* Implementation of hook_help().
*/
function path_alias_xt_help($path, $arg) {
switch ($path) {
case 'admin/help#path_alias_xt':
$s = t('Installation instructions are in the README.txt file. Further documentation is on the <a href="@path_alias_xt">Extended Path Aliases</a> project page.',
array('@path_alias_xt' => url('http://drupal.org/project/path_alias_xt')));
break;
}
return empty($s) ? '' : '<p>'. $s .'</p>';
}
/**
* Implementation of hook_menu().
*
@ -107,7 +94,7 @@ function path_alias_xt_get_path_alias($path, $path_language = '') {
if ($user_alias = drupal_lookup_path('alias', 'user', $path_language)) {
return "$user_alias/$matches[3]";
}
}
}
if ($alias = drupal_lookup_path('alias', "$matches[1]/$matches[2]", $path_language)) {
return "$alias/$matches[3]";
}