0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
wiki-plugins
/
[
Home
]
File: wikiplugin_attributes.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: wikiplugin_attributes.php 33567 2011-03-21 19:01:07Z lphuberdeau $ function wikiplugin_attributes_info() { return array( 'name' => tra('Attributes'), 'documentation' => 'PluginAttributes', 'description' => tra('Assign generic attributes to the current object'), 'prefs' => array( 'wikiplugin_attributes' ), 'extraparams' => true, 'defaultfilter' => 'text', 'icon' => 'pics/icons/page_gear.png', 'params' => array( ), ); } function wikiplugin_attributes_save( $context, $data, $params ) { global $attributelib; require_once 'lib/attributes/attributelib.php'; foreach( $params as $key => $value ) { $key = str_replace( '_', '.', $key ); $attributelib->set_attribute( $context['type'], $context['object'], $key, $value ); } } function wikiplugin_attributes($data, $params) { return ''; }