function _weight_get_types in Weight 7.2
Get content types that are weight enabled.
3 calls to _weight_get_types()
- weight_form_node_admin_content_alter in ./
weight.module - Implements hook_form_FORM_ID_alter().
- weight_node_load in ./
weight.module - Implements hook_node_load().
- _weight_set_weight_from_menu_link in ./
weight.module - Set the weight of a node from the menu link.
File
- ./
weight.module, line 775
Code
function _weight_get_types() {
// No need to use shared static cache for this.
static $types = NULL;
if ($types === NULL) {
$types = db_query('SELECT type FROM {weight_settings} WHERE weight_enabled=1')
->fetchCol();
}
return $types;
}