function google_calendar_block_block_get in Google Calendar Block 7
Same name and namespace in other branches
- 7.2 google_calendar_block.module \google_calendar_block_block_get()
Returns information from database about a user-created (Google Calendar) block.
Parameters
$bid: ID of the block to get information for.
Return value
Associative array of information stored in the database for this block. Array keys:
- bid: Block ID.
- info: Block description.
- calendar_user: The username (in e-mail address form) of the calendar.
- calendar_visibility: The private visibility feed along with the magic cookie value.
- calendar_order_by: The order of the calendar events.
- calendar_sort_order: How the order of the calendar events is sorted.
- calendar_future_events: Whether the calendar displays future events.
- calendar_max_results: How many events are displayed.
- calendar_limit_date_range: Determines whether or not calendar events should be limited to a certain date range.
- calendar_start_min: Determines the earliest event to list. Inclusive.
- calendar_start_max: Determines the latest event to list. Exclusive.
3 calls to google_calendar_block_block_get()
- google_calendar_block_block_configure in ./
google_calendar_block.module - Implements hook_block_configure().
- google_calendar_block_block_view in ./
google_calendar_block.module - Implements hook_block_view().
- google_calendar_block_delete in ./
google_calendar_block.admin.inc - Form constructor for the custom Google Calendar block deletion form.
File
- ./
google_calendar_block.module, line 156 - A module to provide simple Google Calendar blocks using the Google Data APIs.
Code
function google_calendar_block_block_get($bid) {
return db_query("SELECT * FROM {google_calendar_block} WHERE bid = :bid", array(
':bid' => $bid,
))
->fetchAssoc();
}