Commit b274bf87 authored by Dries's avatar Dries

- Patch #182950: fieldset massaging for usability.

parent 09e27018
......@@ -98,7 +98,7 @@ function drupal_get_breadcrumb() {
/**
* Add output to the head tag of the HTML page.
*
*
* This function can be called as long the headers aren't sent.
*/
function drupal_set_html_head($data = NULL) {
......@@ -229,7 +229,7 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') {
/**
* Prepare a destination query string for use in combination with drupal_goto().
*
*
* Used to direct the user back to the referring page after completing a form.
* By default the current URL is returned. If a destination exists in the
* previous request, that destination is returned. As such, a destination can
......@@ -357,7 +357,7 @@ function drupal_not_found() {
drupal_set_title(t('Page not found'));
$return = '';
}
// To conserve CPU and bandwidth, omit the blocks.
print theme('page', $return, FALSE);
}
......@@ -546,7 +546,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
/**
* Log errors as defined by administrator.
*
*
* Error levels:
* - 0 = Log errors to database.
* - 1 = Log errors to database and to screen.
......@@ -762,13 +762,13 @@ function t($string, $args = array(), $langcode = NULL) {
// Escaped only.
$args[$key] = check_plain($value);
break;
case '%':
default:
// Escaped and placeholder.
$args[$key] = theme('placeholder', $value);
break;
case '!':
// Pass-through.
}
......
......@@ -586,14 +586,14 @@ function menu_tree_output($tree) {
$output = '';
$items = array();
// Pull out just the menu items we are going to render so that we
// Pull out just the menu items we are going to render so that we
// get an accurate count for the first/last classes.
foreach ($tree as $data) {
if (!$data['link']['hidden']) {
$items[] = $data;
}
}
$num_items = count($items);
foreach ($items as $i => $data) {
$extra_class = NULL;
......
......@@ -133,7 +133,7 @@ function block_schema() {
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t("The block's {block}.bid."),
),
......
......@@ -472,6 +472,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
'#type' => 'fieldset',
'#title' => t('Comment settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['comment']['comment'] = array(
'#type' => 'radios',
......
......@@ -178,7 +178,7 @@ function locale_schema() {
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('Number of plural indexes in this language.'),
'description' => t('Number of plural indexes in this language.'),
),
'formula' => array(
'type' => 'varchar',
......
......@@ -109,9 +109,9 @@ function node_type_form(&$form_state, $type = NULL) {
$form['submission'] = array(
'#type' => 'fieldset',
'#title' => t('Submission form'),
'#title' => t('Submission form settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#collapsed' => TRUE,
);
$form['submission']['title_label'] = array(
'#title' => t('Title field label'),
......@@ -147,8 +147,9 @@ function node_type_form(&$form_state, $type = NULL) {
);
$form['workflow'] = array(
'#type' => 'fieldset',
'#title' => t('Workflow'),
'#title' => t('Workflow settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['workflow']['node_options'] = array('#type' => 'checkboxes',
'#title' => t('Default options'),
......
......@@ -1871,7 +1871,7 @@ function _node_access_join_sql($node_alias = 'n', $node_access_alias = 'na') {
* If the node_access table has been given an SQL alias other than the default
* "na", that must be passed here.
* @param $account
* The user object for the user performing the operation. If omitted, the
* The user object for the user performing the operation. If omitted, the
* current user is used.
* @return
* An SQL where clause.
......@@ -1907,7 +1907,7 @@ function _node_access_where_sql($op = 'view', $node_access_alias = 'na', $accoun
* @param $op
* The operation that the user is trying to perform.
* @param $account
* The user object for the user performing the operation. If omitted, the
* The user object for the user performing the operation. If omitted, the
* current user is used.
* @return
* An associative array in which the keys are realms, and the values are
......
......@@ -89,7 +89,7 @@ function poll_schema() {
),
'primary key' => array('chid'),
);
$schema['poll_votes'] = array(
'description' => t('Stores per-{users} votes for each {poll}.'),
'fields' => array(
......
......@@ -88,7 +88,7 @@ function statistics_schema() {
'description' => t('Hostname of user that visited the page.'),
),
'uid' => array(
'type' => 'int',
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
......
......@@ -99,7 +99,7 @@ function taxonomy_schema() {
'indexes' => array(
'nid' => array('nid'),
'vid' => array('vid'),
'tid' => array('tid'),
'tid' => array('tid'),
),
'primary key' => array('vid', 'tid', 'nid'),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment