diff --git page_title/modules/blog.page_title.inc page_title/modules/blog.page_title.inc index dd6ed50..6d7870c 100755 --- page_title/modules/blog.page_title.inc +++ page_title/modules/blog.page_title.inc @@ -4,6 +4,7 @@ * @file * Blog implementations of the page title hooks */ +define("PAGE_TITLE_BLOG_SUB_MODULE", TRUE); /** diff --git page_title/modules/comment.page_title.inc page_title/modules/comment.page_title.inc index 20846fd..c78713a 100755 --- page_title/modules/comment.page_title.inc +++ page_title/modules/comment.page_title.inc @@ -4,6 +4,7 @@ * @file * Comment implementations of the page title hooks */ +define("PAGE_TITLE_COMMENT_SUB_MODULE", TRUE); /** diff --git page_title/modules/forum.page_title.inc page_title/modules/forum.page_title.inc index b69d168..cb7aa25 100755 --- page_title/modules/forum.page_title.inc +++ page_title/modules/forum.page_title.inc @@ -4,7 +4,7 @@ * @file * Forum implementations of the page title hooks */ - +define("PAGE_TITLE_FORUM_SUB_MODULE", TRUE); /** * Implements hook_page_title_alter(). diff --git page_title/modules/node.page_title.inc page_title/modules/node.page_title.inc index a94d3a5..7a5983e 100755 --- page_title/modules/node.page_title.inc +++ page_title/modules/node.page_title.inc @@ -4,7 +4,7 @@ * @file * Node implementations of the page title hooks */ - +define("PAGE_TITLE_NODE_SUB_MODULE", TRUE); /** * Implements hook_page_title_alter(). diff --git page_title/modules/page_title.page_title.inc page_title/modules/page_title.page_title.inc index b6034a9..dfed104 100755 --- page_title/modules/page_title.page_title.inc +++ page_title/modules/page_title.page_title.inc @@ -4,6 +4,7 @@ * @file * Page Title implementations of the page title hooks */ +define("PAGE_TITLE_PAGE_TITLE_SUB_MODULE", TRUE); /** diff --git page_title/modules/taxonomy.page_title.inc page_title/modules/taxonomy.page_title.inc index 14ccf6e..aa767be 100755 --- page_title/modules/taxonomy.page_title.inc +++ page_title/modules/taxonomy.page_title.inc @@ -4,6 +4,7 @@ * @file * Taxonomy implementations of the page title hooks */ +define("PAGE_TITLE_TAXONOMY_SUB_MODULE", TRUE); /** diff --git page_title/modules/uc_catalog.page_title.inc page_title/modules/uc_catalog.page_title.inc index 3bd9910..38b4bc5 100644 --- page_title/modules/uc_catalog.page_title.inc +++ page_title/modules/uc_catalog.page_title.inc @@ -4,6 +4,7 @@ * @file * Ubercart Catalog implementations of the page title hooks */ +define("PAGE_TITLE_UC_CATALOG_SUB_MODULE", TRUE); /** diff --git page_title/modules/user.page_title.inc page_title/modules/user.page_title.inc index f67fb44..1435720 100755 --- page_title/modules/user.page_title.inc +++ page_title/modules/user.page_title.inc @@ -4,7 +4,7 @@ * @file * User implementations of the page title hooks */ - +define("PAGE_TITLE_USER_SUB_MODULE", TRUE); /** * Implements hook_page_title_alter(). diff --git page_title/modules/views.page_title.inc page_title/modules/views.page_title.inc index 1dd87ff..ff4f734 100755 --- page_title/modules/views.page_title.inc +++ page_title/modules/views.page_title.inc @@ -4,6 +4,7 @@ * @file * Views implementations of the page title hooks */ +define("PAGE_TITLE_VIEWS_SUB_MODULE", TRUE); /** diff --git page_title/page_title.module page_title/page_title.module index 321a57c..436da61 100755 --- page_title/page_title.module +++ page_title/page_title.module @@ -654,7 +654,8 @@ function page_title_include_api_files() { // Include relevant page_title.inc's. We cannot use drupal_load() here due to the folder structure. // We also avoice using include_once due to its performance hit on the Filesystem foreach (page_title_get_module_apis() as $module => $info) { - if (file_exists(DRUPAL_ROOT . "/{$info['path']}/{$module}.page_title.inc")) { + if (file_exists(DRUPAL_ROOT . "/{$info['path']}/{$module}.page_title.inc") + && !defined("PAGE_TITLE_".strtoupper($module)."_SUB_MODULE")) { include DRUPAL_ROOT . "/{$info['path']}/{$module}.page_title.inc"; } }