You are here

function homebox_load in Homebox 7.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_load()
  2. 6.2 homebox.module \homebox_load()
  3. 7.3 homebox.module \homebox_load()

Implements hook_load().

2 calls to homebox_load()
homebox_restore_defaults_submit in ./homebox.module
Submit function for homebox_restore_defaults.
_homebox_save_user_settings in ./homebox.module
Save the user's page settings

File

./homebox.module, line 192
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_load($names) {
  if (is_array($names)) {
    $loaded_names = array();
    foreach ($names as $nid => $name) {
      $loaded_name = homebox_get_page($name);
      if ($loaded_name) {
        $loaded_names[$nid] = $name;
      }
    }
    return $loaded_names;
  }
  return homebox_get_page($names);
}