While we are at it, why don't we just shorten it to:

        if (function_exists('myBOLTargs')) $args = myBOLTargs($args, $type);

More consistent with other myBOLT hooks.  Next release...

Cheers,
Dan


On Tue, Sep 22, 2009 at 9:11 AM, The Editor <[email protected]> wrote:
> You are right. The critical line should be changed to
>
>       if (function_exists('myBOLTargShortcuts')) $args =
> myBOLTargShortcuts($args, $type);
>
> Basically this allows you to do any special processing of args that
> you want to before sending them back to the engine. No specific uses
> in mind but it could be a very powerful tool in certain situations I'm
> sure.
>
> Will change for the next release.
>
> Cheers,
> Dan
>
>
> On Tue, Sep 22, 2009 at 7:56 AM, DrunkenMonk <[email protected]> wrote:
>>
>> The use of $z in BOLTargs seems to be removed, and yet, should
>> myBOLTargShortcuts exist, it is used.
>>
>> function BOLTargs($x, $type='', $optpat='(?>(\\w+)=)') {
>> ## POWERFUL FUNCTION FOR PARSING A PARAMETER STRING INTO AN ARRAY,
>> USED MANY PLACES.
>>        $count = 0;
>>        preg_match_all("/($optpat|[-+])?(\"[^\"]*\"|'[^']*'|\\S+)/",
>> $x, $terms, PREG_SET_ORDER);
>>        foreach($terms as $t => $tt) {
>>                if ($terms[$t][2] == '') {
>>                        $count = $count + 1;
>>                        $args[$count] = BOLTstripquotes($terms[$t]
>> [3]);
>>                        }
>>                else $args[$terms[$t][2]] = BOLTstripquotes($terms[$t]
>> [3]);
>>                }
>>        if (function_exists('myBOLTargShortcuts')) $z =
>> myBOLTargShortcuts($z, $type);
>>        return $args;
>>        }
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to