| 1 |
<?php |
<?php |
| 2 |
// $Id: css.module,v 1.1.2.3 2006/05/15 18:39:51 fax8 Exp $ |
// $Id: css.module,v 1.3 2008/11/02 15:16:09 fax8 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 95 |
* Implementation of hook_nodeapi(). |
* Implementation of hook_nodeapi(). |
| 96 |
*/ |
*/ |
| 97 |
function css_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) { |
function css_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) { |
| 98 |
if (variable_get('css_'. $node->type, TRUE)) { // check that CSS editing is enabled for the given node type |
if (variable_get('css__'. $node->type, FALSE)) { // check that CSS editing is enabled for the given node type |
| 99 |
switch ($op) { |
switch ($op) { |
| 100 |
|
|
| 101 |
// Controls for valid input data |
// Controls for valid input data |