{"version":"1.0","type":"rich","title":"System module hook_init()","description":"This example shows Drupal’s `system_init()` function managing CSS assets and database slave handling during each page request. It calls `drupal_add_css()` to load system stylesheets with specific groups and `every_page` flags, while also checking `path_is_admin()` for admin-only CSS. The code then examines `$_SESSION['ignore_slave_server']` against `REQUEST_TIME` to conditionally call `Database::ignoreTarget()`, temporarily disabling slave database servers to avoid read lag after writes. It concludes by invoking `system_add_module_assets()` to include assets declared in module `.info` files.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1f2b97e4e956d8f35faef4b72ade9640?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}