function _css_injector_rule_uri in CSS Injector 7
Same name and namespace in other branches
- 7.2 css_injector.module \_css_injector_rule_uri()
Return the URI for a crid.
Parameters
$crid: The integer identifying the CSS Rule ID (crid)
8 calls to _css_injector_rule_uri()
- CSSInjectorTest::testCSSInjectionUI in ./
css_injector.test - Test the Administrative UI, making sure it does what it ought to do.
- css_injector_css_alter in ./
css_injector.module - Implements hook_css_alter(). Since we're trying to give the administrator complete control, we'll move CSS that this module has added to a high weight, higher even than the theme's CSS files. Currently the weight is 200 + the crid,…
- css_injector_edit in ./
css_injector.admin.inc - Form builder function for the CSS rule edit form.
- css_injector_edit_save in ./
css_injector.admin.inc - Submit button callback for the CSS rule edit form.
- css_injector_init in ./
css_injector.module - Implements hook_init(). Checks to see whether any CSS files should be added to the current page, based on rules configured by the site administrator.
File
- ./
css_injector.module, line 299 - Allows administrators to inject CSS into the page output based on configurable rules. Useful for adding simple CSS tweaks without modifying a site's official theme.
Code
function _css_injector_rule_uri($crid) {
if (!empty($crid)) {
$uri = 'public://css_injector/css_injector_' . $crid . '.css';
return $uri;
}
}