function sharerich_sets_load_all in Sharerich 7.2
Same name and namespace in other branches
- 7.3 sharerich.module \sharerich_sets_load_all()
Load all sharerich sets.
Parameters
boolean $include_disabled:
Return value
array of sets.
2 calls to sharerich_sets_load_all()
- sharerich_block_info in ./
sharerich.module - Implements hook_block_info().
- _sharerich_get_sets in ./
sharerich.module - Helper function for grabbing Sharerich set list.
File
- ./
sharerich.module, line 617
Code
function sharerich_sets_load_all($include_disabled = FALSE) {
ctools_include('export');
$sets = ctools_export_crud_load_all('sharerich_sets');
foreach ($sets as $key => $set) {
if (!$include_disabled && isset($set->disabled) && $set->disabled) {
unset($sets[$key]);
}
}
return $sets;
}