Skip to main content
Silkscreen CMS API
  • Login
  • Home

Search for weight

You are here

  1. Home »
  2. API reference »
  3. 1.20.x
Name Type Location Description
weight_value function includes/form.inc Sets the value for a weight element, with zero as a default.
module_set_weight function 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.
drupal_sort_weight function includes/drupal.inc Sorts a structured array by 'weight' key (no # prefix).
_views_weight_sort function modules/views_ui/views_ui.admin.inc
form_process_weight function includes/form.inc Expands a weight element into a select element.
field_info_max_weight function modules/field/field.info.inc Returns the maximum weight of all the components in an entity.
TaxonomyTerm::$weight property 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 modules/file/file.admin.inc User sort function to sort by weight, then label/name.
DRUPAL_WEIGHT_SELECT_MAX constant includes/drupal.inc
views_ui_add_microweights function modules/views_ui/views_ui.admin.inc Recursively adds microweights to a render array, similar to what form_builder() does for forms.
hook_field_info_max_weight function modules/field/field.api.php Returns the maximum weight for the entity components handled by the module.
_file_sort_array_by_weight function modules/file/file.module Sorts an array by weight.
BACKDROP_WEIGHT_SELECT_MAX constant modules/system/system.module Maximum number of values in a weight select element.
TaxonomyVocabulary::$weight property modules/taxonomy/taxonomy_vocabulary.class.inc (optional) The weight of this vocabulary in relation to other vocabularies.
GraphUnitTest::assertWeights function modules/simpletest/tests/graph.test Verify expected order in a graph.
UserRoleAdminTestCase::testRoleWeightChange function modules/user/tests/user.test Test user role weight change operation.
CommonJavaScriptTestCase::testDifferentWeight function modules/simpletest/tests/common.test Test adding a JavaScript file with a different weight.
CommonJavaScriptTestCase::testRenderDifferentWeight function modules/simpletest/tests/common.test Test rendering the JavaScript with a file's weight above jQuery's.

Search 1.20.x

Partial match search is supported

API Navigation

  • 1.20.x
  • Topics
  • Classes
  • Functions
  • Files
  • Constants
  • Globals
  • Deprecated
Powered by Silkscreen CMS