You are here

function ultimate_cron_crud_save in Ultimate Cron 8

Same name and namespace in other branches
  1. 6 ultimate_cron.module \ultimate_cron_crud_save()
  2. 7 ultimate_cron.module \ultimate_cron_crud_save()

CRUD save. Also used for ctools integration.

Parameters

object $object: object to be saved ->name containing unique machine name.

Return value

boolean result of query.

1 call to ultimate_cron_crud_save()
ultimate_cron_set_settings in ./ultimate_cron.module
Set settings for a function.
1 string reference to 'ultimate_cron_crud_save'
ultimate_cron_schema in ./ultimate_cron.install
Implements hook_schema().

File

./ultimate_cron.module, line 1120
@todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…

Code

function ultimate_cron_crud_save($object) {
  return db_merge('ultimate_cron')
    ->key(array(
    'name' => $object->name,
  ))
    ->fields(array(
    'settings' => serialize($object->settings),
  ))
    ->execute();
}