function page_manager_update_task_handler_weight in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/page_manager.module \page_manager_update_task_handler_weight()
Set an overidden weight for a task handler.
We do this so that in-code task handlers don't need to get written to the database just because they have their weight changed.
1 call to page_manager_update_task_handler_weight()
- page_manager_save_page_cache in page_manager/
page_manager.module - Write all changes from the page cache and clear it out.
File
- page_manager/
page_manager.module, line 676 - The page manager module provides a UI and API to manage pages.
Code
function page_manager_update_task_handler_weight($handler, $weight) {
db_query("DELETE FROM {page_manager_weights} WHERE name = '%s'", $handler->name);
db_query("INSERT INTO {page_manager_weights} (name, weight) VALUES ('%s', %d)", $handler->name, $weight);
}