diff -u b/core/includes/form.inc b/core/includes/form.inc --- b/core/includes/form.inc +++ b/core/includes/form.inc @@ -1598,40 +1598,40 @@ * Adds a column of radio buttons or checkboxes for each row of a table. * * @param $element - * An associative array containing the properties and children of - * the tableselect element. Properties used: #header, #options, #empty, - * and #js_select. The #options property is an array of selection options; - * each array element of #options is an array of properties. These - * properties can include #attributes, which is added to the - * table row's HTML attributes; see theme_table(). An example of per-row - * options: - * @code - * $options = array( - * array( - * 'title' => 'How to Learn Drupal', - * 'content_type' => 'Article', - * 'status' => 'published', - * '#attributes' => array('class' => array('article-row')), - * ), - * array( - * 'title' => 'Privacy Policy', - * 'content_type' => 'Page', - * 'status' => 'published', - * '#attributes' => array('class' => array('page-row')), - * ), - * ); - * $header = array( - * 'title' => t('Title'), - * 'content_type' => t('Content type'), - * 'status' => t('Status'), - * ); - * $form['table'] = array( - * '#type' => 'tableselect', - * '#header' => $header, - * '#options' => $options, - * '#empty' => t('No content available.'), - * ); - * @endcode + * An associative array containing the properties and children of + * the tableselect element. Properties used: #header, #options, #empty, + * and #js_select. The #options property is an array of selection options; + * each array element of #options is an array of properties. These + * properties can include #attributes, which is added to the + * table row's HTML attributes; see theme_table(). An example of per-row + * options: + * @code + * $options = array( + * array( + * 'title' => 'How to Learn Drupal', + * 'content_type' => 'Article', + * 'status' => 'published', + * '#attributes' => array('class' => array('article-row')), + * ), + * array( + * 'title' => 'Privacy Policy', + * 'content_type' => 'Page', + * 'status' => 'published', + * '#attributes' => array('class' => array('page-row')), + * ), + * ); + * $header = array( + * 'title' => t('Title'), + * 'content_type' => t('Content type'), + * 'status' => t('Status'), + * ); + * $form['table'] = array( + * '#type' => 'tableselect', + * '#header' => $header, + * '#options' => $options, + * '#empty' => t('No content available.'), + * ); + * @endcode */ function form_pre_render_tableselect($element) { $rows = array();