Commit e5d0ec41 authored by Nicholas Thompson's avatar Nicholas Thompson
Browse files

Adding Vocabulary insert/update/delete support to flush the Page Title Settings cache

parent 362e9cdc
......@@ -347,6 +347,9 @@ function page_title_node_type_form_submit($form, &$form_state) {
// For some reason the node module adds the fieldset as a separate entry in the variables table... we dont want this!
variable_del('page_title_' . $form_state['values']['type']);
// Flush the settings on update/insert.
page_title_get_settings(TRUE);
}
......@@ -423,6 +426,34 @@ function page_title_taxonomy_term_insert($term) {
}
/**
* Implement hook_taxonomy_vocabulary_insert().
*/
function page_title_taxonomy_vocabulary_insert($vocabulary) {
// Flush the settings on insert.
page_title_get_settings(TRUE);
}
/**
* Implement hook_taxonomy_vocabulary_update().
*/
function page_title_taxonomy_vocabulary_update($vocabulary) {
// Flush the settings on update.
page_title_get_settings(TRUE);
}
/**
* Implement hook_taxonomy_vocabulary_delete().
*/
function page_title_taxonomy_vocabulary_delete($vocabulary) {
// Flush the settings on update.
page_title_get_settings(TRUE);
}
/**
* Implement hook_user_insert().
*/
......
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