| 13 |
* $Id$ |
* $Id$ |
| 14 |
* |
* |
| 15 |
* $Log$ |
* $Log$ |
| 16 |
|
* Revision 1.4 2003/04/09 07:55:47 joko |
| 17 |
|
* + function untwingle_reference |
| 18 |
|
* |
| 19 |
* Revision 1.3 2003/04/08 22:35:16 joko |
* Revision 1.3 2003/04/08 22:35:16 joko |
| 20 |
* + 'function yesno' from utils/links.php |
* + 'function yesno' from utils/links.php |
| 21 |
* |
* |
| 669 |
return $bool ? 'yes' : 'no'; |
return $bool ? 'yes' : 'no'; |
| 670 |
} |
} |
| 671 |
|
|
| 672 |
|
function untwingle_reference($item, $options = array()) { |
| 673 |
|
|
| 674 |
|
// default |
| 675 |
|
if (!$options['seperator']) { $options['seperator'] = '_'; } |
| 676 |
|
|
| 677 |
|
if ( is_string($item) && (substr($item, 0, 2) == "o_") ) { |
| 678 |
|
//print "YAI!<br/>"; |
| 679 |
|
$parts = split($options['seperator'], $item); |
| 680 |
|
$result = array( |
| 681 |
|
ident => $parts[1], |
| 682 |
|
type => $parts[2], |
| 683 |
|
); |
| 684 |
|
return $result; |
| 685 |
|
} |
| 686 |
|
} |
| 687 |
|
|
| 688 |
} |
} |
| 689 |
|
|
| 690 |
|
|