Closed (cannot reproduce)
Project:
Power Menu
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2012 at 15:24 UTC
Updated:
3 Feb 2012 at 15:24 UTC
Think
/**
* Get the menu which is defined as the power menu
*/
function power_menu_get_menu() {
//...
$result = db_query("SELECT b.* FROM {blocks} as b LEFT JOIN {blocks_roles} AS r ON b.delta = r.delta
WHERE b.module='menu' AND status=1
AND theme='%s' AND b.delta IN (" . db_placeholders($menus, 'varchar') . ")
AND (r.rid IN (". db_placeholders($rids, 'int') .") OR r.rid IS NULL) ", $args);
//...
}
should be reviewed and rewritten somehow.
Comments
Comment #1
weri commentedYou added only 'AND status=1'?
The power_menu only supports the "display information" for core menu blocks, but this is not a problem to use it with menu_blocks. It is important to configure the core menu block's visibility properly (path, language, ...) that the power_menu can find the correct menu. The core menu block needs not to be placed in a region. This is the reason why the status is not set to "= 1" in the query.
Comment #2
weri commented