fields['name'] * @Description: Pull up the names of the categories the company is in. * */ function GetCategoriesNamesForCompany($id){ $entryarray = array(); global $gCms; $db =& $gCms->GetDB(); $query = 'SELECT * FROM '.cms_db_prefix().'module_compdir_company_categories AS c ' .'LEFT JOIN '.cms_db_prefix().'module_compdir_categories AS a ' .'ON c.category_id = a.id WHERE c.company_id = ?'; $result = $db->Execute($query, array($id)); while ($result && !$result->EOF){ $entryarray[]=$result->fields['name']; $result->MoveNext(); } return $entryarray; } } function smarty_cms_function_modslack($params, &$smarty) { global $gCms; $config =& $gCms->GetConfig(); //get and set the parameters $param1 = isset($params['param1']) ? $params['param1']:''; $assign = isset($params['assign']) ? $params['assign']:''; $ModSlackOBJ = new modslack(); //$ModSlackOBJ->findResourceDetails($ModSlackOBJ->resResizedImage); $OutCome = $ModSlackOBJ->GetCategoriesNamesForCompany($param1); if($assign!=''){ $smarty->assign($assign,$OutCome); } } function smarty_cms_help_function_modslack() { ?>

What does this tag do?

How do I use this tag?

* —- Ever just had a need for a off function that you wished
* was in the module, but the creator didn't want to do it, or commit it,
* Well here we go a list of off functions for different modules. Please feel free to
* Let me know if you find more.

What parameters does it take?

No none of these I just need to write this :D

It'll be something like param1 param2 etc and assign



Author: jeremyBass <jeremybass@cableone.net>
Website: CorbensProducts.com
Support more mods like this:


Version: 1.0, 11.19.2009

Author: jeremyBass <jeremybass@cableone.net>

Version: 1.0, 10.10.2009