Conjunto de cambios d7a822e en sipes para cord/modules/block/block.module
- Fecha y hora:
- 23/05/2016 15:48:25 (hace 8 años)
- Branches:
- stable, version-3.0
- Children:
- 6f9ddf1
- Parents:
- b354002
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
cord/modules/block/block.module
rb354002 rd7a822e 302 302 // Remove blocks that are no longer defined by the code from the database. 303 303 foreach ($old_blocks as $module => $old_module_blocks) { 304 foreach ($old_module_blocks as $delta => $block) { 305 db_query("DELETE FROM {blocks} WHERE module = '%s' AND delta = '%s' AND theme = '%s'", $module, $delta, $theme); 304 // This cleanup does not apply to disabled modules, to avoid configuration 305 // being lost when modules are disabled. 306 if (module_exists($module)) { 307 foreach ($old_module_blocks as $delta => $block) { 308 db_query("DELETE FROM {blocks} WHERE module = '%s' AND delta = '%s' AND theme = '%s'", $module, $delta, $theme); 309 } 306 310 } 307 311 } … … 438 442 * 439 443 * @return 440 * An array of block objects, indexed with <i>module</i>_<i>delta</i>.441 * If you are displaying your blocks in one or two sidebars, you may check442 * whether this array is empty to see how many columns are going to be443 * displayed.444 * An array of block objects, indexed with module name and block delta 445 * concatenated with an underscore, thus: MODULE_DELTA. If you are displaying 446 * your blocks in one or two sidebars, you may check whether this array is 447 * empty to see how many columns are going to be displayed. 444 448 * 445 449 * @todo 446 450 * Now that the blocks table has a primary key, we should use that as the 447 * array key instead of <i>module</i>_<i>delta</i>.451 * array key instead of MODULE_DELTA. 448 452 */ 449 453 function block_list($region) {
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.