return self::_info($force);
}
+ static public function flushEnabledComponents() {
+ self::getEnabledComponents(TRUE);
+ }
+
public static function &getNames($translated = FALSE) {
$allComponents = self::getComponents();
// also set the smarty variables to the current component
$template = CRM_Core_Smarty::singleton();
$template->assign('activeComponent', $name);
- if (CRM_Utils_Array::value('formTpl', $comp->info[$name])) {
+ if (!empty($comp->info[$name]['formTpl'])) {
$template->assign('formTpl', $comp->info[$name]['formTpl']);
}
- if (CRM_Utils_Array::value('css', $comp->info[$name])) {
+ if (!empty($comp->info[$name]['css'])) {
$styleSheets = '<style type="text/css">@import url(' . "{$config->resourceBase}css/{$comp->info[$name]['css']});</style>";
CRM_Utils_System::addHTMLHead($styleSheet);
}
}
}
- static function &addShowHide(&$showHide) {
- $info = self::_info();
-
- foreach ($info as $name => $comp) {
- if ($comp->usesSearch()) {
- $bqr = $comp->getBAOQueryObject();
- $bqr->addShowHide($showHide);
- }
- }
- }
-
static function searchAction(&$row, $id) {
$info = self::_info();
$tasks = array();
foreach ($info as $name => $value) {
- if (CRM_Utils_Array::value('task', $info[$name])) {
+ if (!empty($info[$name]['task'])) {
$tasks += $info[$name]['task'];
}
}