summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
commit36ec18969549ff173b45ae35577e035c2c19f641 (patch)
tree8a73f48534a188f946e6edf5ecad90f837ce3d84 /modules/path
parent73a72337bb4c296211c5cb728b027ad0fefa85ed (diff)
downloadbrdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.gz
brdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.bz2
#326539 by JohnAlbin, sun, cha0s, ultimateboy, Rob Loach, Damien Tournoud: Convert 'class' attribute to use an array, not a string.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.admin.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc
index 2809b7090..4f65379a6 100644
--- a/modules/path/path.admin.inc
+++ b/modules/path/path.admin.inc
@@ -42,9 +42,6 @@ function path_admin_overview($keys = NULL) {
$destination = drupal_get_destination();
foreach ($result as $data) {
$row = array(
- // If the system path maps to a different URL alias, highlight this table
- // row to let the user know of old aliases.
- 'class' => ($data->dst != drupal_get_path_alias($data->src, $data->language) ? 'warning' : NULL),
'data' => array(
l($data->dst, $data->src),
l($data->src, $data->src, array('alias' => TRUE)),
@@ -52,6 +49,11 @@ function path_admin_overview($keys = NULL) {
l(t('delete'), "admin/settings/path/delete/$data->pid", array('query' => $destination)),
),
);
+ // If the system path maps to a different URL alias, highlight this table
+ // row to let the user know of old aliases.
+ if ($data->dst != drupal_get_path_alias($data->src, $data->language)) {
+ $row['class'] = array('warning');
+ }
if ($multilanguage) {
array_splice($row['data'], 2, 0, module_invoke('locale', 'language_name', $data->language));
}
@@ -208,7 +210,7 @@ function path_admin_delete_confirm_submit($form, &$form_state) {
* @see path_admin_filter_form_submit()
*/
function path_admin_filter_form(&$form_state, $keys = '') {
- $form['#attributes'] = array('class' => 'search-form');
+ $form['#attributes'] = array('class' => array('search-form'));
$form['basic'] = array('#type' => 'fieldset',
'#title' => t('Filter aliases')
);