Changeset 2634 for trunk/include


Ignore:
Timestamp:
Oct 1, 2008, 11:08:51 PM (16 years ago)
Author:
plg
Message:

feature 874 added: new Web API method pwg.tags.add.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r2592 r2634  
    13981398  return $creation_output;
    13991399}
     1400
     1401function ws_tags_add($params, &$service)
     1402{
     1403  if (!is_admin() or is_adviser())
     1404  {
     1405    return new PwgError(401, 'Access denied');
     1406  }
     1407
     1408  include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     1409
     1410  $creation_output = create_tag($params['name']);
     1411
     1412  if (isset($creation_output['error']))
     1413  {
     1414    return new PwgError(500, $creation_output['error']);
     1415  }
     1416
     1417  return $creation_output;
     1418}
    14001419?>
Note: See TracChangeset for help on using the changeset viewer.