Skip to main content
Backdrop CMS API
Documentation for Backdrop CMS developers.
  • Welcome!
    • Login

You are here

  1. Home »
  2. API reference »
  3. 1.x

Search for weight

Name Type Location Description
weight_value function core/includes/form.inc Sets the value for a weight element, with zero as a default.
jsweights.css file modules/examples/js_example/css/jsweights.css div#js-weights div { font-size: 20px; font-weight: bold; }
module_set_weight function core/includes/module.inc Set the weight of a module in the 'system' table, thereby determining the order in which its hooks will be executed in relation to other modules.
_views_weight_sort function core/modules/views_ui/views_ui.admin.inc
drupal_sort_weight function core/includes/drupal.inc Sorts a structured array by 'weight' key (no # prefix).
form_process_weight function core/includes/form.inc Expands a weight element into a select element.
field_info_max_weight function core/modules/field/field.info.inc Returns the maximum weight of all the components in an entity.
js_example_js_weights function modules/examples/js_example/js_example.module Weights demonstration.
TaxonomyTerm::$weight property core/modules/taxonomy/taxonomy.entity.inc (optional) The weight of this term in relation to other terms of the same vocabulary.
_file_sort_weight_label function core/modules/file/file.admin.inc User sort function to sort by weight, then label/name.
DRUPAL_WEIGHT_SELECT_MAX constant core/includes/drupal.inc
views_ui_add_microweights function core/modules/views_ui/views_ui.admin.inc Recursively adds microweights to a render array, similar to what form_builder() does for forms.
BACKDROP_WEIGHT_SELECT_MAX constant core/modules/system/system.module Maximum number of values in a weight select element.
hook_field_info_max_weight function core/modules/field/field.api.php Returns the maximum weight for the entity components handled by the module.
_file_sort_array_by_weight function core/modules/file/file.module Sorts an array by weight.
TaxonomyVocabulary::$weight property core/modules/taxonomy/taxonomy_vocabulary.class.inc (optional) The weight of this vocabulary in relation to other vocabularies.
GraphUnitTest::assertWeights function core/modules/simpletest/tests/graph.test Verify expected order in a graph.
UserRoleAdminTestCase::testRoleWeightChange function core/modules/user/tests/user.test Test user role weight change operation.
CommonJavaScriptTestCase::testDifferentWeight function core/modules/simpletest/tests/common.test Test adding a JavaScript file with a different weight.
CommonJavaScriptTestCase::testRenderDifferentWeight function core/modules/simpletest/tests/common.test Test rendering the JavaScript with a file's weight above jQuery's.
TaxonomyVocabularyFunctionalTest::testTaxonomyAdminChangingWeights function core/modules/taxonomy/tests/taxonomy.test Changing weights on the vocabulary overview with two or more vocabularies.
  • Developer Documentation
    • Advanced Installation
    • Developing Modules
    • Developing Themes
    • Developing Layouts
    • Upgrading from Drupal 7
    • Converting Drupal code
      • Converting modules
      • Converting themes
      • Change Records
    • Working w Config Management
    • Deploying a Backdrop site
    • Coding & documentation standards
    • Writing secure code
    • Contribute to Backdrop
  • Backdrop API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Form API Reference
  • Glossary

Stay connected

Sign up for our newsletter

Powered by Backdrop CMS
  • backdropcms.org
  • forum.backdropcms.org