node_alias模块

Node Alias模块

/**
* @file
* Allows module to be nodealiasd giving it an alias.
*
*/
/**
* Implementation of hook_help().
*/
function nodealias_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Enables users to make a node alias');
case 'admin/help#nodealias':
return t("Need something here");
case 'node/add/nodealias':
return variable_get('nodealias_help', '');
case 'node/add#nodealias':
return t("A node aliasd node provides an alias to a node");
}
}
/**
* Implementation of hook_node_name().
*/
function nodealias_node_name($node) {
return t('node alias');

Drupal的两个新模块:pureftp模块和 node alias模块

又有两个新鲜出炉的模块:pureftp模块和node alias模块。pureftp模块使用pureftp服务来管理ftp 用户,把Drupal和Pureftp整合在一起。Pureftp本身是一个开放代码的跨平台ftp服务器端软件,它的介绍在这里

Node alias模块的用处更大一些,不过作者还没有申请到CVS帐户,不能直接提供模块下载,在本文的结束我会把它的源码贴出,欢迎大家测试。Node Alias模块(以下简称为NA模块)主要的功能有两项,都挺实用的。


Theme & Icons by N.Design Studio
Powered by Drupal.
京ICP备06028988号
Syndicate content