Conjunto de cambios d7a822e en sipes para cord/modules/block/block.module


Ignorar:
Fecha y hora:
23/05/2016 15:48:25 (hace 8 años)
Autor:
José Gregorio Puentes <jpuentes@…>
Branches:
stable, version-3.0
Children:
6f9ddf1
Parents:
b354002
Mensaje:

se agrego el directorio del cord

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • cord/modules/block/block.module

    rb354002 rd7a822e  
    302302  // Remove blocks that are no longer defined by the code from the database.
    303303  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      }
    306310    }
    307311  }
     
    438442 *
    439443 * @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 check
    442  *   whether this array is empty to see how many columns are going to be
    443  *   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.
    444448 *
    445449 * @todo
    446450 *   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.
    448452 */
    449453function block_list($region) {
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.