How to check Checkbox in Drupal CCK?

How to check the checkbox on the activity?
In the block to check the checkbox in the node.
If is checked then display one, not worth more.
I can not naguglit
September 19th 19 at 00:00
2 answers
September 19th 19 at 00:02
Solution
If you just need to know the value of this parameter (server-side), it is enough to do $node->field_название_поля['und'][0]['value'] (which may be different depending on your settings). Or just do var_dump($node->field_название_поля) to understand where exactly to look for
My friend fucked up I am suffering for 7 hours already... ))

So do
field_field_foto_on)?>

Get
Array ( [0] => Array ( [rendered] => Array ( [#markup] => Yes [#access] => 1 ) [raw] => Array ( [value] => 1 ) ) ) 1

How to get [value] => 1

Trying so
field_field_foto_on[0]['value'])?>
not poluchaetsya - Manuela.Rolfson commented on September 19th 19 at 00:05
: How to check Checkbox in Drupal CCK? - violet13 commented on September 19th 19 at 00:08
The decision was the $row->field_field_foto_on[0]['raw']['value'] - Manuela.Rolfson commented on September 19th 19 at 00:11
: and here is another: xandeadx.ru/blog/tags/debugging if you do not understand - violet13 commented on September 19th 19 at 00:14
: Yes, I like and read :) Thank you to all for the help! - Manuela.Rolfson commented on September 19th 19 at 00:17
there are just no clear-cut solutions in different areas: blocks, wusah, modules, formatters, etc. the path will be slightly different + somewhere else, you may need to load node separately. - violet13 commented on September 19th 19 at 00:20
: I there is still the question created, faced Sedna, trying to decide what to tell? hard given me Drupal... to Fix Drupal AJAX? - Manuela.Rolfson commented on September 19th 19 at 00:23
September 19th 19 at 00:04
Use dpm() from the module devel will see many interesting things.

Find more questions by tags Drupal