2017-04-12 58 views

回答

1

使用這樣

$ my_url = drupal_get_path( '模塊', '[Your_module_name]')。 「/ yourdirectoryname」; $ option = array(); $ info_files = file_scan_directory($ my_url,'/.*.pdf$/'$$option);

+0

雖然這段代碼可以解決問題,但[包括解釋](https://meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers)確實有助於提高您的質量帖子。請記住,您將來會爲讀者回答問題,而這些人可能不知道您的代碼建議的原因。 –