2012-03-25 2 views

답변

2

용액 드루팔 자동화 별명 패턴 변수 사소한 저장된되어

function hook_install() 
{ 
    variable_set('pathauto_node_[content_type]_pattern', 'content_type_path/[title-raw]'); 
} 

content_type 콘텐츠 유형의 머신 판독 가능한 이름을 참조하여 content_type_path 콘텐츠의 별칭 원하는 접두어이고 유형.

http://drupal.org/node/1246334#comment-5038566

+1

에서 해결책을 가져 왔습니다. 추가 할 것이다 : module_exists 테스트에서 변수 집합을 래핑하거나 모듈에 의해 pathauto가 필요한지 확인해야합니다. – mirzu

+0

그래, 나는 module.info 파일의 "dependencies [] = pathauto"행으로 해결했다. –

관련 문제