You are here

function rotor_get_all_items in Rotor Banner 5.7

Return a list of nodes of all the rotor_item nodes.

1 call to rotor_get_all_items()
rotor_admin_form in ./rotor.module
Admin settings form page.

File

./rotor.module, line 289
A rotor banner consists in a set of images that will be changing. This module is made using jquery.

Code

function rotor_get_all_items() {
  $items = array();
  $result = db_query("SELECT nid FROM {node} WHERE type = 'rotor_item'");
  if ($result) {
    while ($node = db_fetch_array($result)) {
      $items[] = node_load($node);
    }
  }
  return $items;
}