Closed (fixed)
Project:
Install Profile API (obsolete)
Version:
6.x-1.x-dev
Component:
CRUD functions and includes
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2008 at 00:21 UTC
Updated:
21 Jan 2009 at 23:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
Christopher Herberte commentedoops, this is sort of a dupe of http://drupal.org/node/163260 anyhow, it would be nice get some ideas.
Comment #2
Christopher Herberte commentedI propose 2 new functions for block.inc I could not see the sense in install_enable_block() function as an active but unassigned block is not useful.
Comment #3
quicksketchThanks, I've added these two functions with two small changes:
- Renamed "install_assign_block" to "install_set_block", since that's what it was called in the Drupal 5 version.
- I made the $region parameter required in install_set_block(), since it doesn't make much sense to set the region to '' but have the block be enabled.
Comment #4
quicksketchI've backported these changes to the DRUPAL-5--2 branch. Note that this changed the parameter order of install_set_block() for Drupal 5--2. This makes it more consistent with other functions, which all use the order ($block, $module, $theme, ...).