Closed (fixed)
Project:
Permissions API
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
18 Feb 2010 at 15:40 UTC
Updated:
23 Mar 2010 at 15:40 UTC
The API functions should return some sort of value, at the very least a TRUE or FALSE if worked. Ideally some sort of array of errors or something like that.
This is important because if someone needs to do something afterwords that depends on if that API call was successful, they currently have no way of knowing.
Thanks for the great module!
Comments
Comment #1
ebeyrent commentedI agree, and will add this to the functions.
Thanks for the feedback!
Comment #2
ebeyrent commentedFixed in the 2.6 release. Almost all functions return either TRUE or FALSE. In cases where FALSE is returned, errors are logged via watchdog.
Comment #3
zzolo commentedAwesome! Thank you.