menu_node_edit_get_sections($mlid = NULL)Load the sections defined by the module.
$mlid An optional menu link id to pass, which will limit the return data to verify the requested menu link id.
An array of section-enabled mlids, where key and value are both the mlid.
./menu_node_edit.module, line 183
<?php
function menu_node_edit_get_sections($mlid = NULL) {
static $sections;
if (!isset($sections)) {
$sections = array();
$result = db_query("SELECT mlid FROM {menu_node_edit}");
while ($data = db_fetch_object($result)) {
$sections[$data->mlid] = $data->mlid;
}
}
if (!empty($mlid)) {
return isset($sections[$mlid]) ? $sections[$mlid] : array();
}
return $sections;
}
?>