AutoPatrol, Bureaucrats, Administrators
481
edits
Tomas Kirnak (talk | contribs) |
m (Text replacement - "^" to "{{deprecated}}") |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Delete | Delete objects custom attribute. | ||
'''Since:''' 1.2.17 | '''Since:''' 1.2.17 | ||
== Syntax == | == Syntax == | ||
DeleteCustomAttribute('' | DeleteCustomAttribute(''object'', ''attributeName'') | ||
== Parameters == | == Parameters == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| '' | | ''object'' || Any object of [[NXSL_Class_Reference|NetObj class]], or its sub-classes. | ||
You can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information). | |||
|- | |- | ||
| ''attributeName'' || Custom attribute name. | | ''attributeName'' || Custom attribute name. | ||
Line 21: | Line 22: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="c"> | |||
DeleteCustomAttribute($node, "my_attribute"); | |||
</syntaxhighlight> |