Commit 76343dfd authored by TravisCarden's avatar TravisCarden

By TravisCarden: Prevent page caching on all module paths.

parent 39215a55
......@@ -104,6 +104,17 @@ function checklistapi_help($path, $arg) {
}
}
/**
* Implements hook_init().
*/
function checklistapi_init() {
// Disable page caching on all Checklist API module paths.
$module_paths = array_keys(checklistapi_menu());
if (in_array(current_path(), $module_paths)) {
drupal_page_is_cacheable(FALSE);
}
}
/**
* Implements hook_menu().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment