Search for weight

  1. Search 9.5.x for weight
  2. Search 8.9.x for weight
  3. Search 10.3.x for weight
  4. Search 11.x for weight
  5. Other projects
Title Object type File name Summary
BlockHashTestCase::assertWeight function modules/block/block.test Asserts that the block_test module's block has a given weight.
drupal_sort_weight function includes/common.inc Sorts a structured array by the 'weight' element.
DRUPAL_WEIGHT_SELECT_MAX constant modules/system/system.module Maximum number of values in a weight select element.
field_info_max_weight function modules/field/field.info.inc Returns the maximum weight of all the components in an entity.
FormElementTestCase::testWeightDefaultValue function modules/simpletest/tests/form.test Tests Weight form element #default_value behavior.
form_process_weight function includes/form.inc Expands a weight element into a select element.
GraphUnitTest::assertWeights function modules/simpletest/tests/graph.test Verify expected order in a graph.
hook_field_info_max_weight function modules/field/field.api.php Returns the maximum weight for the entity components handled by the module.
JavaScriptTestCase::testDifferentWeight function modules/simpletest/tests/common.test Test adding a JavaScript file with a different weight.
JavaScriptTestCase::testRenderDifferentWeight function modules/simpletest/tests/common.test Test rendering the JavaScript with a file's weight above jQuery's.
language_provider_weight function includes/language.inc Returns the passed language negotiation provider weight or a default value.
MenuDataIntegrityTestCase::testNullMenuWeight function modules/simpletest/tests/menu.test Tests for null/casting weight parameter.
ProfileTestWeights class modules/profile/profile.test
ProfileTestWeights::getInfo function modules/profile/profile.test
ProfileTestWeights::testProfileFieldWeights function modules/profile/profile.test
shortcut_set_reset_link_weights function modules/shortcut/shortcut.module Resets the link weights in a shortcut set to match their current order.
TaxonomyVocabularyFunctionalTest::testTaxonomyAdminChangingWeights function modules/taxonomy/taxonomy.test Changing weights on the vocabulary overview with two or more vocabularies.
UserRoleAdminTestCase::testRoleWeightChange function modules/user/user.test Test user role weight change operation.
weight_value function includes/form.inc Sets the value for a weight element, with zero as a default.
_menu_get_menu_weight_delta function modules/menu/menu.module Calculate the delta for the weight element for a given set of menus.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.