You are here

function sheetnode_update_6007 in Sheetnode 6

Implementation of hook_update_N(). Inform user of new file structure.

File

./sheetnode.install, line 337

Code

function sheetnode_update_6007(&$sandbox) {
  $files = array(
    "php_java_bridge*",
    "sheetnode_google*",
    "sheetnode_xls*",
    "sheetnode_ods*",
  );
  $msg = t('
    The files in the Sheetnode module have been reorganized as of update 6007.
    Please delete the following files from the main Sheetnode directory at !path:
    <ul>!files</ul>
  ');
  $args = array(
    '!path' => drupal_get_path('module', 'sheetnode'),
    '!files' => "\n<li>" . implode("</li>\n<li>", $files) . '</li>',
  );
  watchdog('sheetnode', $msg, $args, WATCHDOG_ALERT);
  drupal_set_message(t($msg, $args), 'warning');
  return array();
}