Commit ff1f6d5f authored by good_man's avatar good_man

Issue #1110860: Content access rules integration - missing function

parent e0975510
......@@ -81,11 +81,10 @@ function _content_access_roles_list() {
function content_access_list_to_checkboxes($element) {
$checkboxes = array();
$operations = _content_access_get_operations();
$labels = _content_access_get_operations_lables($operations);
foreach ($operations as $op) {
$checkboxes[$op] = $element;
$checkboxes[$op]['#title'] = t($labels[$op]);
$checkboxes[$op]['#title'] = t($op);
$checkboxes[$op]['#type'] = 'checkboxes';
$checkboxes[$op]['#options'] = $element['#options'][$op];
unset($checkboxes[$op]['#default_value']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment