name_is_valid


Description:

[ Version ( since = "2.38" ) ]
public static bool name_is_valid (string action_name)

Checks if action_name is valid.

action_name is valid if it consists only of alphanumeric characters, plus `-` and `.`. The empty string is not a valid action name.

It is an error to call this function with a non-UTF-8 action_name. action_name must not be `NULL`.

Parameters:

action_name

a potential action name

Returns:

`TRUE` if action_name is valid