
Toledoh
Enthusiast
Jan 30, 2012, 2:01 PM
Post #10 of 19
(2669 views)
Shortcut
|
Thanks Jason, My current code is actually a bit different... it shows;
addFilter('list_advancedCommands', '_outgoingSMS_addAdvancedOption', null, 1); function _outgoingSMS_addAdvancedOption($labelsToValues) { global $tableName; if ($tableName == 'accounts') { $labelsToValues['Send SMS (Search Results)'] = 'smsSearch'; } return $labelsToValues; } addAction('section_unknownAction', '_outgoingSMS_displayForm', null, 2); function _outgoingSMS_displayForm($tableName, $action) { global $schema, $CURRENT_USER; if ($action != 'smsSearch') { return; } // error checking //if (!@$CURRENT_USER) { die("CURRENT_USER not defined!"); } //if (!array_key_exists('hasEditorAccess', $GLOBALS)) { die("hasEditorAccess not defined!"); } $where = '1'; if (@$_REQUEST['to']) { $where = "num IN (" . implode(',', array_map('intval', explode(',', $_REQUEST['to']))) . ")"; } Cheers, Tim Forrest Toledoh Enterprises www.toledoh.com.au
|