欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

d7 drupal7 移除 删除 添加新评论 链接 有大用 有大大用

下面 1)是针对当前节点         2) 是针对新创建的节点          3) 针对所有节点

1)  /node/11174/edit


image.png


2) /admin/structure/types/manage/jses_terminal_manager

image.png


3) 可以从theme的 template.php 文件中主题_preprocess_node(&$variables) 中移除#links,

function bartik_clone_preprocess_node(&$variables)
{
 $export = kprint_r($variables['content']['links'], TRUE); // $vars - is a variable which you want to print.
 print $export;  // 可以看到里面有 #links ,把  #links 置为空数组就可以了,,,如下图
}

image.png

普通分类: