Skip to main content
backdrop Documentation
Documentation and API source code for Backdrop CMS.
  • Welcome!
    • Login

Search for weight

  1. Home »
  2. API reference »
  3. 1.x
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.
  • Getting started
    • Installing
    • Updates vs upgrades
    • Hosting/deploying
  • Upgrading from Drupal
    • Introduction
    • Upgrade overview
    • Converting Drupal code
  • User guide
    • Quick start guide
    • Using Backdrop
    • Contributed modules
  • Developing for Backdrop
    • Developing modules
    • Developing themes
    • Developing layouts
    • Using libraries
    • Local development
    • Writing secure code
  • Contributors guide
    • Contribute to Backdrop core
      • How to use the core issue queue
      • Adding labels to issues
      • Adding milestones to issues
    • Contribute Backdrop add-ons
    • Become a maintainer
    • Adopt a project
    • Contribute to documentation
  • API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Form API reference
  • Appendix/reference
    • Change records
    • Glossary
    • Coding & documentation standards
    • Contrib permissions policy

Stay connected

Sign up for our newsletter

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