function _mongodb_block_ensure_all_indexes in MongoDB 7
Ensure indexes to block collections for enabled themes.
2 calls to _mongodb_block_ensure_all_indexes()
- mongodb_block_enable in mongodb_block/
mongodb_block.install - Implements hook_enable().
- mongodb_block_update_7100 in mongodb_block/
mongodb_block.install - Add indexes to block collections for enabled themes.
File
- mongodb_block/
mongodb_block.install, line 31 - Install, update and uninstall functions for the MongoDB block module.
Code
function _mongodb_block_ensure_all_indexes() {
$themes = list_themes();
$enabled_theme_list = array();
foreach ($themes as $theme) {
if ($theme->status == 1) {
$enabled_theme_list[] = $theme->name;
}
}
_mongodb_block_ensure_indexes($enabled_theme_list);
}