Changeset 12032 for trunk/admin/include/functions.php
- Timestamp:
- Sep 2, 2011, 10:37:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r12030 r12032 1395 1395 } 1396 1396 1397 /** 1398 * 1399 */ 1400 function delete_tags($tag_ids) 1401 { 1402 if (is_numeric($tag_ids)) 1403 { 1404 $tag_ids = array($tag_ids); 1405 } 1406 1407 if (!is_array($tag_ids)) 1408 { 1409 return false; 1410 } 1411 1412 $query = ' 1413 DELETE 1414 FROM '.IMAGE_TAG_TABLE.' 1415 WHERE tag_id IN ('.implode(',', $tag_ids).') 1416 ;'; 1417 pwg_query($query); 1418 1419 $query = ' 1420 DELETE 1421 FROM '.TAGS_TABLE.' 1422 WHERE id IN ('.implode(',', $tag_ids).') 1423 ;'; 1424 pwg_query($query); 1425 } 1426 1397 1427 function tag_id_from_tag_name($tag_name) 1398 1428 {
Note: See TracChangeset
for help on using the changeset viewer.