I had gone through drupal link which contains something as shown below
https://drupal.org/node/224333
Use ‘#markup’ not ‘#value’ for markup
(Issue) The new default type for items in forms or other structured array data (e.g. node content) passed to drupal_render() is ‘#type’ => ‘markup’. In Drupal 6 and earlier, the HTML content was added to the array using the #value attribute. In Drupal 7, this needs to be changed to #markup. This change also applies to those form elements of ‘#type’ => ‘item’. This change reduces the confusion between form values and markup and allows the code in drupal_render() to be simplified.
Example 1, from system.admin.inc In Drupal 6:
<?php $screenshot = $screenshot ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $theme->info['name'])), '', array('class' => 'screenshot'), FALSE) : t('no screenshot'); $form[$theme->name]['screenshot'] = array('#value' => $screenshot); ?>
In Drupal 7:
<?php $screenshot = $screenshot ? theme('image', array('path' => $screenshot, 'alt' => t('Screenshot for %theme theme', array('%theme' => $theme->info['name'])), 'attributes' => array('class' => 'screenshot'))) : t('no screenshot'); $form[$theme->name]['screenshot'] = array('#markup' => $screenshot); ?>
I have a code in drupal 6 which is as shown below :
$form['in_title'] = array( '#type' => 'button', '#value' => t('ort'), '#executes_submit_callback' => false, '#attributes' => array('class' => 'hide-submit-exclude'), );
I want to convert this code to D7 .
So When and where should I use #markup and #value ?
I just want to know the difference between #markup and #value