election.module
-------------------
line 372:
if (!empty($type['post key'])...

Contribution Date
Technology
Contribution Project
Contribution Details

election.module
-------------------
line 372:

if (!empty($type['post key'])) { $post_key = $type['post key']; $post_name = _election_get_posts_name($type_mn); $post_name_plural = _election_get_posts_name($type_mn, TRUE); $items['admin/config/election/' . $type_mn . '/' . $post_key] = array(

I think what you are trying to accomplish here can be done using arguments, e.g. $items['admin/config/election/%type_mn/%post_key']

line 315

'title' => 'Elections', 'description' => 'Administer elections and referendums.',

all the titles and descriptions would have to be wrapped in t()

correct me if I am wrong but do we really need function election_menu_alter(&$items) { ? is it not possible to achieve the functionality in function election_menu(&$items) { itself ?

Contribution Author
Files count
0
Patches count
0