summaryrefslogtreecommitdiff
path: root/LibertyTag.php
diff options
context:
space:
mode:
Diffstat (limited to 'LibertyTag.php')
-rwxr-xr-xLibertyTag.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index a173a1b..6a0244a 100755
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -403,7 +403,6 @@ function tags_content_display( &$pObject ) {
* filter the search with pigeonholes
* @param $pParamHash['tags']['filter'] - a tag or an array of tags
**/
-
function tags_content_list_sql( &$pObject, $pParamHash = NULL ) {
global $gBitSystem;
$ret = array();
@@ -432,6 +431,17 @@ function tags_content_list_sql( &$pObject, $pParamHash = NULL ) {
return $ret;
}
+function tags_content_edit( $pObject=NULL ) {
+ global $gBitSystem, $gBitSmarty, $gBitUser;
+ if ( $gBitSystem->isPackageActive( 'tags' ) ) {
+ $tag = new LibertyTag( $pObject->mContentId );
+ if( $gBitUser->hasPermission( 'p_tags_view' ) ) {
+ if( $tag->load() ) {
+ $gBitSmarty->assign( 'tagData', !empty( $tag->mInfo['tags'] ) ? $tag->mInfo['tags'] : NULL );
+ }
+ }
+ }
+}
/**
* @param includeds a string or array of 'tags' and contentid for association.