| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_theme.module,v 1.48 2006/10/23 06:50:50 profix898 Exp $ |
// $Id: taxonomy_theme.module,v 1.49 2008/06/08 15:21:03 profix898 Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_theme() |
* Implementation of hook_theme() |
| 72 |
// |
// |
| 73 |
if ($type == 'vocabulary') { |
if ($type == 'vocabulary') { |
| 74 |
if ($op == 'delete') { |
if ($op == 'delete') { |
| 75 |
db_query('DELETE FROM {themekey_properties} WHERE property = \'vid\' AND value = \'%s\'', $array['vid']); |
db_query('DELETE FROM {themekey_properties} WHERE property = \'taxonomy:vid\' AND value = \'%s\'', $array['vid']); |
| 76 |
} |
} |
| 77 |
_themekey_properties_resort('vid'); |
_themekey_properties_resort('taxonomy:vid'); |
| 78 |
} |
} |
| 79 |
else if ($type == 'term') { |
else if ($type == 'term') { |
| 80 |
if ($op == 'delete') { |
if ($op == 'delete') { |
| 81 |
db_query('DELETE FROM {themekey_properties} WHERE property = \'tid\' AND value = \'%s\'', $array['tid']); |
db_query('DELETE FROM {themekey_properties} WHERE property = \'taxonomy:tid\' AND value = \'%s\'', $array['tid']); |
| 82 |
} |
} |
| 83 |
_themekey_properties_resort('tid'); |
_themekey_properties_resort('taxonomy:tid'); |
| 84 |
} |
} |
| 85 |
} |
} |