You are here

function context_condition_book::condition_values in Context 6.3

Same name and namespace in other branches
  1. 6 plugins/context_condition_book.inc \context_condition_book::condition_values()
  2. 7.3 plugins/context_condition_book.inc \context_condition_book::condition_values()

Condition values.

Overrides context_condition::condition_values

File

plugins/context_condition_book.inc, line 7

Class

context_condition_book
Expose book properties as a context condition.

Code

function condition_values() {
  $values = array();
  foreach (book_get_books() as $book) {
    $values[$book['menu_name']] = check_plain($book['title']);
  }
  return $values;
}