Skip to content
Snippets Groups Projects
Commit cafd7215 authored by abu zakham's avatar abu zakham Committed by Rajab Natshah
Browse files

Issue #2915103: Reordered right-side field sets in node/add/edit pages

parent 542b9399
No related branches found
No related tags found
No related merge requests found
...@@ -7,3 +7,28 @@ ...@@ -7,3 +7,28 @@
// To have all varbase core general and global tokens. // To have all varbase core general and global tokens.
module_load_include('inc', 'varbase_core', 'varbase_core.tokens'); module_load_include('inc', 'varbase_core', 'varbase_core.tokens');
/**
* Implements hook_FORM_ID_form_alter.
*/
function varbase_core_form_node_form_alter(&$form, $form_state) {
// Override node form sidebar order.
if (isset($form['author'])) {
$form['author']['#weight'] = -6;
}
if (isset($form['field_comments'])) {
$form['field_comments']['widget'][0]['#weight'] = -5;
}
if (isset($form['path_settings'])) {
$form['path_settings']['#weight'] = -4;
}
if (isset($form['field_meta_tags'])) {
$form['field_meta_tags']['widget'][0]['#weight'] = -3;
}
if (isset($form['simple_sitemap'])) {
$form['simple_sitemap']['#weight'] = -2;
}
if (isset($form['ds_switch_view_mode'])) {
$form['ds_switch_view_mode']['#weight'] = 101;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment