ecml_parse_views; $keywords = $vars['config']->ecml_keywords; $perms = $vars['config']->ecml_permissions; ksort($views); ksort($keywords); echo elgg_view_title(elgg_echo('ecml:admin:admin')); echo '
' . elgg_echo('ecml:admin:instruction') . '
'; // yes I'm using a table because this is table. $form_body = <<<___END  | ___END; foreach ($keywords as $keyword => $info) { $desc = $info['description']; $form_body .= "$keyword | "; } $form_body .= '
---|---|
$desc | "; foreach ($keywords as $keyword => $info) { $checked = (in_array($keyword, $perms[$view])) ? 'checked="checked"' : ''; // ooook. input/checkboxes isn't overly useful. // do it ourself. $form_body .= ""; } $form_body .= ' |