You are here

public function FeedsDateTime::removeGranularity in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsParser.inc \FeedsDateTime::removeGranularity()
  2. 7 plugins/FeedsParser.inc \FeedsDateTime::removeGranularity()

Removes a granularity entry from the array.

File

plugins/FeedsParser.inc, line 596

Class

FeedsDateTime
Extend PHP DateTime class with granularity handling, merge functionality and slightly more flexible initialization parameters.

Code

public function removeGranularity($g) {
  if ($key = array_search($g, $this->granularity)) {
    unset($this->granularity[$key]);
  }
}