name = 'checkbox';
// do not delete!
parent::__construct();
}
function render_field($args)
{
if (isset($args['field']['choices'])) {
foreach ($args['field']['choices'] as $key => $choice) {
$checked_text = '';
if (is_array($args['field_value']) && in_array($key, $args['field_value'])) {
$checked_text = ' checked="checked" ';
}
echo '';
echo '
';
}
}
}
}
endif;