Closed (fixed)
Project:
Value is
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2013 at 12:01 UTC
Updated:
24 Aug 2013 at 12:21 UTC
Drupal core still doesn't have it... There are issues from 2006 requesting this.
Make it. Use https://gist.github.com/rudiedirkx/6200160 That seems to work.
<?php
$form['test_no_fs_roles'] = array(
'#type' => 'checkboxes',
'#title' => 'Roles 2',
'#options' => drupal_map_assoc(array('a', 'b', 'c', 'd')),
'#default_value' => variable_get('test_no_fs_roles', array('c')),
'#disabled_options' => array('b'), // That's it!
);
?>
Comments
Comment #1
rudiedirkx commentedFixed in http://drupalcode.org/project/value_is.git/commit/8253887
Comment #2.0
(not verified) commentedcode+