Проверка на правильное подключение файлов модулей Drupal


$file_path = module_load_include($type, $module, $filename);

if ($file_path === FALSE) {
dpm('Failed to include: ' . $filename);
}
else {
dpm('Successfully included: ' . $file_path);
}
?>

Категория: 
The code has been tested and works

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.